Menu
Is there any way to use javascript (or any way at all) to set the size of a CSS box with a formula?
Example:
#theTop {
background-color: #ffffff;
border-style: none;
color: #000000;
font-family: arial, helvetica, sans-serif, verdana;
font-size: 8px;
font-style: normal;
height: [(window.availHeight-150)*100%];
margin: 0px;
position: relative;
text-align: center;
width: 700;
}
Thanx.
[CODE]
<div style="border:1px solid black; height:600px; height:100%; width:600px; position:relative;">
<div style="height:100px; width:600px; border-bottom:1px solid black;">Div 1: 100 high, 600 wide</div>
<div style="height:20px; width:600px; border-bottom:1px solid black;">Div 2: 20 high, 600 wide</div>
Div 3: 100% of remaining height, 600 wide.
<div style="height:20px; width:600px; border-top:1px solid black; position:absolute; bottom:0px; left:0px;">Div 4: 20 high, 600 wide</div>
</div>[/CODE]
as you guys must be aware of the fact that MS has changed the syntaxummm....
to get height and width for the IE6[/QUOTE]
0.1.9 — BETA 6.15