This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > August 2004 > To apply at a box the HTML's height





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author To apply at a box the HTML's height
provaands

2004-08-26, 12:27 pm

How I can to apply the yellow box's height how the blue box's height;
that height corresponds with Mozilla, or the Netscape to the HTML 's
height (rose),
with 5 IE or IE 6 it corresponds to the BODY's height (green). ?

Is sufficient that the yellow box's height is how HTML 's height


Even if I apply height=100% at yellow box , it considers as height
total only
the visual part of the browser (viewport) and not the part ' under '
viewport.


Thank you



Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


<html>
<head>

<style type="text/css">

html {background-color: pink;
margin:0; padding:0;
}
body {background-color: green;
margin:0; padding:0;
}

#boxyellow
{height:100%;
position:relative;
background:yellow;
width:760px;
}

#boxblue {
position:absolute;
top:0;
left:80px;
width:160px;
background:blue;
}


</style>
</head>

<body>
<!-- yellow -->
<div id="boxyellow">
<ul>
<li> BB </li>
<li> BB </li>
</ul>

<!-- blue -->
<div id="boxblue">
<ul>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
</ul>

<ul>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
</ul>
<ul>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
</ul>

<ul>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
</ul>

<ul>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
</ul>
<ul>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
<li> AAAA </li>
</ul>
</div>
<!-- end blue -->

</div>
<!-- end yellow -->



</body>
</html>
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews