I have two div
, with background
of two different colors, that occupy the whole page and I want them to reach the bottom of the whole, I mean 100%, until I get it there. But when the content occupies more than 100% and there is scroll the div
no longer occupies the entire screen, only takes 100% initial.
<body>
<div id="menu">
<div>
</div>
</div>
<div id="contenido">
</div>
</body>
html,body{
margin: 0;
padding: 0;
border: 0;
outline: 0;
height:100%;
font-family: Cambria, Cochin, Georgia, Times, Times New Roman, serif;
}
#menu {
width: 20%;
background-color:#0174DF;
float:left;
height: 100%;
}
#contenido {
background-color: #58ACFA;
width: 80%;
float:left;
height: 100%;
font-size: 18px;
}