ice78991
Programmer
- Nov 20, 2006
- 216
I read recently that a block level element such as a div will automatically be the same height as its parent's height ( ie fill the content area of its parent in terms of width and height)
If this is correct then why does the following not fill the entire page with a green block ?
<html>
<body>
<div style="background-color:#99FF66"></div>
<p>No Margins</p>
</body>
</html>
If this is correct then why does the following not fill the entire page with a green block ?
<html>
<body>
<div style="background-color:#99FF66"></div>
<p>No Margins</p>
</body>
</html>