Forum Moderators: not2easy
the container
Code:
.padbcont_32AE27C {position: absolute; left: 50%; margin-left: -312px; width:625px; height:100% }
the top
Code:
.padbcont_32D0C61 { width:625px; height:136px }
the middle
Code:
.padbcont_3A1FA66 { width:625px;}
the bottom
Code:
.padbcont_32D4330 { bottom: 0; width:625px; height:61px }
body
Code:
<body align="center">
<div align="center">
<iframe src="indexITEMS/header.html" frameborder="0" scrolling="no" align="top" height="136px" width="641"></iframe>
<iframe id="_Bodyarea" name="_Bodyarea" src="indexITEMS/body/body_home.html" frameborder="0" scrolling="yes" align="absmiddle" height="100%" width="641"></iframe>
<iframe src="indexITEMS/foot/foot.html" frameborder="0" scrolling="no" align="bottom" height="61px" width="641"></iframe>
</div>
</body>
#header {
height:100px;
}
#content {
height:100%;
bottom-margin:150px;
}
#footer {
height:150px;
position: absolute;
bottom: 0;
width: 100%;
}
With a height of 100% and a bottom-margin of 150px you will not have any content in the last 150 pixels. That doesn't mean "100% - 150px" is ok.
Good luck,
Mihai
It would be a very handy feature in CSS though :)
For a fudge, you can do something like 89% and hope it's correct at your target browser resolution at maximised.
For a proper fix, you can use javascript to determine viewport height and then set the height of your object to that less 130px.
So what this dude has done is:
position: absolute; - to make use of the top and bottom properties; overflow: auto; so any content that spills over will make use of an internal scrollbar; left: 50%; of the viewport, and set margin-left: -320px; (which is half of the width of the div#content), voila, centered; top: 100px; so the div#content sits 100px from the top of the viewport; bottom: 50px; so the div#content sits 50px from the bottom of the viewport aswell; and