Ok, ich habe es nun soweit hingekriegt, dass es mir gefällt. Aber wie kriege i h genau den Footer nach unten?
*, *::before, *::after { box-sizing: border-box; }
body {
background-image: linear-gradient(rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0.3)), url('img/tape-measure.jpg');
background-size: cover;
min-height: 1500px;
color: #000305;
font-size: 100%;
font-family: 'Coming Soon', 'Lucida Sans Unicode', cursive;
line-height: 1.5;
}
.mainHeader {
width: 90%;
margin: 0 auto;
}
.mainHeader nav {
background-color: #9cb34f;
border-radius: 5px;
}
.mainHeader nav ul {
list-style: none;
margin: 2em;
padding: 0;
}
nav:first-of-type ul {
display: flex;
flex-flow: row wrap;
}
nav:first-of-type li {
flex: 1 0 15em;
padding: 0.125em;
}
nav a {
display: block;
padding: 1em;
text-decoration: inherit;
}
.mainHeader nav a:link, .mainHeader nav a:visited {
color: #fff;
}
.mainHeader nav a:hover,
.mainHeader nav a.Home:link,
.mainHeader nav a.Home:visited {
background-color: #CF5C3F;
text-shadow: none;
}
.mainHeader nav ul li a {
border-radius: 5px;
}
.mainHeader img.Margrit {
width: 20%;
position: absolute;
right: 5%;
top: 20%;
}
.mainHeader img.Logo {
width: 20%;
position: absolute;
right: 5%;
top: 78%;
}
.mainHeader p.inBearbeitung {
position: absolute;
top: 40%;
left: 5%;
font-size: 175%;
}
.mainFooter {
width: 90%;
border-radius: 5px;
background-color: #9cb34f;
display: table;
margin: 0 auto;
}
.mainFooter p {
color: #fff;
display: table-cell;
vertical-align: middle;
padding-left: 1%;
}