newttyy
07-11-2007, 05:07 PM
Hello there,
First of all I have to say that right now in this moment I am one of the most frustrated person in the whole univers ...
Let me tell you why, and I really hope and pray someone out there can help me out finding a solution to this.
First, the problem:
Yes, is the well known height=100%. I know there is a perfectly working solution, however my problem goes a little bit beyond that ...
Second, the conditions:
1. - The code HAS to be XHTML.
2. - As long the rules of XHTML are not broken, anything can be used.
3. - has to work the same in Explorer and Firefox (don't care about the other ones).
Third, what I am trying to do:
I have a perfectly working table with height=100%, with three rows. I want the first row on the top and the last row at the bottom to have a fix width and the row in the middle to fill in the rest of the space.
For whatever reasons, it just doesn't work!! In Firefox, it seems is working, however Explorer just don't get it (sometimes I just hate this browser)!!!
I really really want to make this working, even if I will have to use Javascript.
Please help!!!
The code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>.: newttyy - test 12 :.</title>
<style type="text/css">
<!--
body, td, th {
color: #333333;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
body {
background-color: #CCCCCC;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
html, body, #inABox {
height:100%;
}
-->
</style></head>
<body>
<table id="inABox" width="700" border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="10" rowspan="3"> </td>
<td height="200"> </td>
<td width="10" rowspan="3"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="50"> </td>
</tr>
</table>
</body>
</html>
First of all I have to say that right now in this moment I am one of the most frustrated person in the whole univers ...
Let me tell you why, and I really hope and pray someone out there can help me out finding a solution to this.
First, the problem:
Yes, is the well known height=100%. I know there is a perfectly working solution, however my problem goes a little bit beyond that ...
Second, the conditions:
1. - The code HAS to be XHTML.
2. - As long the rules of XHTML are not broken, anything can be used.
3. - has to work the same in Explorer and Firefox (don't care about the other ones).
Third, what I am trying to do:
I have a perfectly working table with height=100%, with three rows. I want the first row on the top and the last row at the bottom to have a fix width and the row in the middle to fill in the rest of the space.
For whatever reasons, it just doesn't work!! In Firefox, it seems is working, however Explorer just don't get it (sometimes I just hate this browser)!!!
I really really want to make this working, even if I will have to use Javascript.
Please help!!!
The code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>.: newttyy - test 12 :.</title>
<style type="text/css">
<!--
body, td, th {
color: #333333;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
body {
background-color: #CCCCCC;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
html, body, #inABox {
height:100%;
}
-->
</style></head>
<body>
<table id="inABox" width="700" border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="10" rowspan="3"> </td>
<td height="200"> </td>
<td width="10" rowspan="3"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="50"> </td>
</tr>
</table>
</body>
</html>