Is there a way to expand a page or container based on content divs? Do you need to specify the height in all divs in order for them to expand to the desired size? I am not understanding how to expand divs.
html{
height:100%;
}
body{
margin: 0px;
padding: 0px;
background-color: grey;
height:100%;
width:100%;
}
#container{
height:90%;
width:80%;
margin:auto;
border-style: solid;
}
#header{
height:8%;
width:100%;
}
#head_wrap{
height:90%;
width:100%;
margin:auto;
}
#content{
height:70%;
width:80%;
margin:auto;
}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>basic</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="container">
<div id="header">
<div id="head_wrap">
</div>
</div>
<div id="content">
</div>
</div>
</body>
</html>