How can I create three rows with the following height:
- The header should be 70px
- Main should be 30% of the screen
- Footer should be taking the rest of the space
body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
}
header {
background-color: red;
height: 70px;
z-index: 10;
position: relative;
}
main {
background-color: green;
height: 30%;
position: relative;
}
footer {
background-color: #ddd;
/* height? */
}
<body>
<header></header>
<main></main>
<footer></footer>
</body>