The red #container
element doesn't seem to take up all the available space in the document, even when it's width is set to 100%. There seems to be some extra padding in the html
element, but even when I set it's padding to 0 it's still there.
How could I fix this? Thanks in advance.
Demo code:
body, html {
width: 100%;
height: 100%;
}
#container {
width: 100%;
height: 100%;
background-color: red;
}
<body>
<div id='container'></div>
</body>