HTML variable and fixed rows all in a 100% height table

admin

Administrator
Staff member
I have 5 <tr> into a table. They have the following:<br />
<br />
1st row: banner<br />
2nd row: nav bar<br />
3rd row: iframe<br />
4th row: options<br />
5th row: footer<br />
<br />
This general table has a 100% height.<br />
Structure is as simple as that. 1st, 2nd and 5th rows are fixed in height.<br />
And here comes my problem: I need 3rd row to have the same height as the<br />
iframe and the 4th row should have a variable height according to the 3rd<br />
one.<br />
<br />
I'm working on this code and it's almost done but content at 4th row doesn't<br />
work. It's like it has a minor heigth that it should have.<br />
<br />
I'm giving away this code. Could anyone help me?<br />
Here's the main code:<br />
<br />
<br />
MAIN CODE<br />
<html><br />
<head><br />
<title>testing...</title><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<style type="text/css"><br />
<!--<br />
body {<br />
background-color: #333333;<br />
margin-left: 0px;<br />
margin-top: 0px;<br />
margin-right: 0px;<br />
margin-bottom: 0px;<br />
}<br />
--><br />
</style><br />
</head><br />
<br />
<body><br />
<br />
<table width="775" align="center" height="100%" cellspacing="0"<br />
cellpadding="0" bgcolor="#FFFFFF"><br />
<br />
<!-- 1st. row: Banner --><br />
<br />
<tr><br />
<td width="775" height="66"><img src=http://www.htmlforums.com/archive/index.php/"images/dm_banner.jpg" width="775"<br />
height="66"></td><br />
</tr><br />
<br />
<br />
<!-- 2nd row: Nav Bar --><br />
<br />
<tr><br />
<td width="775" height="14"><br />
<table width="775" cellpadding="0" cellspacing="0" bgcolor="#FFF5E5"><br />
<tr><br />
<td><br />
OPTION 1 - OPTION 2 - OPTION 3 - OPTION 4<br />
</td><br />
</tr><br />
</table></td><br />
</tr><br />
<br />
<br />
<!-- 3rd row: Data from iframe --><br />
<br />
<tr height="100%"><br />
<td width="775"><br />
<iframe src=http://www.htmlforums.com/archive/index.php/"iframe.htm" WIDTH=775 height="100%" scrolling=No<br />
frameborder="0"></iframe><br />
</td><br />
</tr><br />
<br />
<br />
<!-- 4th row: options menu --><br />
<br />
<tr width="775" height="100%"><br />
<td><br />
1. Option 1<br><br />
2. Option 2<br><br />
3. Option 3<br><br />
</td><br />
</tr><br />
<br />
<br />
<!-- 5th row: Footer --><br />
<tr><br />
<td width="775" height="39" align="center"><img src=http://www.htmlforums.com/archive/index.php/"footer.jpg"<br />
width="279" height="39"></td><br />
</tr><br />
<br />
</table><br />
<br />
</body><br />
</html><br />
<br />
<br />
Here's the iframe page code<br />
<br />
IFRAME.HTM<br />
<html><br />
<head><br />
<title>Untitled Document</title><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<style type="text/css"><br />
<!--<br />
body {<br />
margin-left: 0px;<br />
margin-top: 0px;<br />
margin-right: 0px;<br />
margin-bottom: 0px;<br />
background-color: #FFFFFF;<br />
}<br />
--><br />
</style><br />
</head><br />
<br />
<body><br />
<table width="775" height="300" align="center" cellpadding="0"<br />
cellspacing="0" bgcolor="EEEEEE"><br />
<tr valign="top"><br />
<td><br />
<table width="100%" cellpadding="0" cellspacing="0"><br />
<tr><br />
<td>Text 1</td><br />
</tr><br />
<tr><br />
<td>Text 2</td><br />
</tr><br />
<tr><br />
<td>Text 3</td><br />
</tr><br />
</table><br />
</td><br />
</tr><br />
</table><br />
</body><br />
</html><br />
<br />
<br />
Thanks in advance,<br />
-- <br />
Marcelo Balgurevich<!--content-->I would suggest using separate tables myself, but there is probably another solution, thats what i'd do off the top of my head... jaeman<!--content-->And here comes my problem: I need 3rd row to have the same height as the<br />
iframe and the 4th row should have a variable height according to the 3rd<br />
one.<br />
<br />
I'm working on this code and it's almost done but content at 4th row doesn't<br />
work. It's like it has a minor heigth that it should have.<br />
<br />
I'm giving away this code. Could anyone help me?<br />
then don't give it a height. and thanks for giving it away, I don't know what I would do without it. ;)<!--content-->:P<br />
<br />
maybe you should validate your code before you give it away, you have many deprecated tags in there ;)<!--content-->
 
Back
Top