Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<html>
<head>
<style>
.container {
position:relative;
width: 50%;
}
@media (max-width: 800px) {
.container {
width: 100%;
}
}
.container:before {
content: "";
display:block;
padding-top: 100%;
}
.grid-container {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 0;
position: absolute;
left: 0;
top: 0;
margin: 0;
}
.grid_3x3 {
display: inline-block;
height:100%;
width:100%;
position: relative;
text-align:center;
}
.block {
float: left;
top: 0;
width: 33.3333%;
height: 33.3333%;
position: relative;
display: inline-block;
width: 33.3333%;
height: 33.3333%;
box-sizing: border-box;
padding: 0px;
overflow: hidden;
Border:#000 solid 1px;
}
.block .img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.grafik01 {background-image: url("");}
.grafik02 {background-image: url("");}
.grafik03 {background-image: url("");}
.grafik04 {background-image: url("");}
.grafik05 {background-image: url("");}
.grafik06 {background-image: url("");}
.grafik07 {background-image: url("");}
.grafik08 {background-image: url("");}
.grafik09 {background-image: url("");}
</style>
</head>
<body>
<div class="container">
<div class="grid-container">
<div class="grid_3x3">
<div class="block"><div class="img grafik01">Lorem ipsum dolor sit amet.</div></div>
<div class="block"><div class="img grafik02">Consetetur sadipscing elitr.</div></div>
<div class="block"><div class="img grafik03">Sed diam nonumy eirmod tempor invidunt ut</div></div>
<div class="block"><div class="img grafik04">Consetetur sadipscing elitr.</div></div>
<div class="block"><div class="img grafik05">Sed diam nonumy eirmod tempor invidunt ut.</div></div>
<div class="block"><div class="img grafik06">Lorem ipsum dolor sit amet.</div></div>
<div class="block"><div class="img grafik07">Sed diam nonumy eirmod tempor invidunt ut.</div></div>
<div class="block"><div class="img grafik08">Lorem ipsum dolor sit amet.</div></div>
<div class="block"><div class="img grafik09">Consetetur sadipscing elitr.</div></div>
</div>
</div>
</div>
</body>
</html>
nav a {
display:none;
}
nav a {
visibility:hidden;
}
nav a:focus, nav a:hover, nav a:focus, nav a:hover {
visibility:visible !important;
}
<html>
<head>
<style>
.container {
position:relative;
width: 75%;
}
@media (max-width: 750px) {
.container {
width: 100%;
}
}
.container:before {
content: "";
display:block;
padding-top: 100%;
}
.grid-container {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 0;
position: absolute;
left: 0;
top: 0;
margin: 0;
}
.grid_3x3 {
display: inline-block;
height:100%;
width:100%;
position: relative;
text-align:center;
}
.block {
float: left;
top: 0;
width: 33.3333%;
height: 33.3333%;
position: relative;
display: inline-block;
width: 33.3333%;
height: 33.3333%;
box-sizing: border-box;
padding: 0px;
overflow: hidden;
/*Border:#000 solid 1px;*/
background-color:#CCC;
}
.block .img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
div.img {
display: flex;
align-items: center;
justify-content: center;
background-size:contain;
}
.grafik01 {background-image: url("grafik01.jpg");}
.grafik02 {background-image: url("grafik02.jpg");}
.grafik03 {background-image: url("grafik03.jpg");}
.grafik04 {background-image: url("grafik04.jpg");}
.grafik05 {background-image: url("grafik05.jpg"); background-color:#e31a20; color:#FFFFFF;}
.grafik06 {background-image: url("grafik06.jpg");}
.grafik07 {background-image: url("grafik07.jpg");}
.grafik08 {background-image: url("grafik08.jpg");}
.grafik09 {background-image: url("grafik09.jpg");}
nav a {
display: flex;
text-decoration: none;
height:inherit;
align-items: center;
justify-content: center;
color:#000;
padding:10px;
}
nav a:focus, nav a:hover, nav a:focus, nav a:hover {
background-color:#0069b4;
color:#FFFFFF;
width:100%;
padding:10px;
}
</style>
</head>
<body>
<div class="container">
<div class="grid-container">
<nav>
<div class="grid_3x3">
<div class="block"><div class="img grafik01"><a href="#">Lorem ipsum dolor sit amet.</a></div></div>
<div class="block"><div class="img grafik02"><a href="#">Consetetur sadipscing elitr.</a></div></div>
<div class="block"><div class="img grafik03"><a href="#">Sed diam nonumy eirmod tempor invidunt ut</a></div></div>
<div class="block"><div class="img grafik04"><a href="#">Consetetur sadipscing elitr.</a></div></div>
<div class="block"><div class="img grafik05"><h2>Sed diam nonumy eirmod tempor invidunt ut.</h2></div></div>
<div class="block"><div class="img grafik06"><a href="#">Lorem ipsum dolor sit amet.</a></div></div>
<div class="block"><div class="img grafik07"><a href="#">Sed diam nonumy eirmod tempor invidunt ut.</a></div></div>
<div class="block"><div class="img grafik08"><a href="#">Lorem ipsum dolor sit amet.</a></div></div>
<div class="block"><div class="img grafik09"><a href="#">Consetetur sadipscing elitr.</a></div></div>
</div>
</nav>
</div>
</div>
</body>
</html>
nav {
height:100%;
}
nav a {
display: flex;
text-decoration: none;
color:transparent !important;
/*visibility:hidden;*/
height:inherit;
align-items: center;
justify-content: center;
color:#000;
padding:10px;
}
nav a:focus, nav a:hover, nav a:focus, nav a:hover {
background-color:#0069b4;
/*visibility:visible !important;*/
color:#FFFFFF !important;
width:100%;
padding:10px;
}
for (var i = 0; i < thelinks.length; i++) {