You can try and make the following changes:
#container{
height: calc(100% - 30px);
padding-top: 0;
}
You can remove properties positionfor both elements, as it staticwill work fine.
Plunk
content height: 100%, , , (body ). header body, 30px. 100% + 30px , , . padding-top .
html{
padding:0;
margin: 0;
height:100%;
}
body{
padding:0;
margin: 0;
height:100%;
}
#header{
height: 30px;
background: black;
width: 100%;
position: relative;
}
#container{
position: relative;
height: calc(100% - 30px);
background-color: #aaaaaa;
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<div id="header"></div>
<div id="container"></div>
</body>
</html>