Hello,
I am using this html page to test some css styles.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<title></title>
<LINK href="default.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<div class="wrapper">
TEST
</div>
</BODY>
</HTML>
To strech the page vertically this works in firefox atleast
Code:
.wrapper
{
height:100%;
width:650px;
margin-left:auto;
margin-right:auto;
border-style:solid;
border-width:1px;
border-color:black;
}
html, body {
height:100%;
}
Why do I need to set height equal 100% for three different elements (html, body and wrapper) ? Just would like to understand what is happening.