Okay, I believe this is one of the biggest issues found using CSS/DIV
layout. But, I haven't found a non-Javascript solution.
I would like two DIVs - first DIV, say with a height of 20px. The
second DIV with a height of 100% (the rest of the viewport).
If I do this
<div style="height:2 0px>
</div>
<div id="MyContainer " style="height:1 00%">
</div>
MyContainer will have 100% of the height of it's container box (e.g. a
<bodysized 100% to the viewport). At such, I'll not get a container
div with the height of 100% - 20px, which is my goal. I'm looking to
do this without javascript or alternatively, nested tables (which is a
CSS nightmare cross-browser).
Is this possible? If not, I'll go the javascript route, but... Is CSS
this limited?
Thanks,
- Mike
layout. But, I haven't found a non-Javascript solution.
I would like two DIVs - first DIV, say with a height of 20px. The
second DIV with a height of 100% (the rest of the viewport).
If I do this
<div style="height:2 0px>
</div>
<div id="MyContainer " style="height:1 00%">
</div>
MyContainer will have 100% of the height of it's container box (e.g. a
<bodysized 100% to the viewport). At such, I'll not get a container
div with the height of 100% - 20px, which is my goal. I'm looking to
do this without javascript or alternatively, nested tables (which is a
CSS nightmare cross-browser).
Is this possible? If not, I'll go the javascript route, but... Is CSS
this limited?
Thanks,
- Mike
Comment