dlipski
11-20-2008, 03:30 PM
Hi,
I know that there is a lot of similar threads in many forums but none of them helps me with my problem.
I have page as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
html,body {
width: 100%;
height: 100%;
overflow: auto;
margin: 0px;
}
</style>
</head>
<body>
<div style="width: 30%; height: auto; border: 1px dotted red">
<div id="div1" style="background-color: blue;">
<table style="width: 100%; height: 100%;">
<tr style="width: 100%; height: 100%">
<td style="height: 100%; width: 50%; border: 1px dotted black;">
1<br> 2
<br>
</td>
<td style="height: 100%; border: 1px dotted black;">
<div id="div2" style="height: 100%; background-color: red;">.</div>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
What I would like to achiive is to stretch(vertically) div with id=div2 to entire table cell (what exactly heppens in Firefox) in IE.
I spend few hours trying to do this but I dont have any other idea.
What is important:
the most outer div must have height set to auto (or something that allows to autoresize to its content), and page have to be run in standard mode.
Regards
Daniel
I know that there is a lot of similar threads in many forums but none of them helps me with my problem.
I have page as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
html,body {
width: 100%;
height: 100%;
overflow: auto;
margin: 0px;
}
</style>
</head>
<body>
<div style="width: 30%; height: auto; border: 1px dotted red">
<div id="div1" style="background-color: blue;">
<table style="width: 100%; height: 100%;">
<tr style="width: 100%; height: 100%">
<td style="height: 100%; width: 50%; border: 1px dotted black;">
1<br> 2
<br>
</td>
<td style="height: 100%; border: 1px dotted black;">
<div id="div2" style="height: 100%; background-color: red;">.</div>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
What I would like to achiive is to stretch(vertically) div with id=div2 to entire table cell (what exactly heppens in Firefox) in IE.
I spend few hours trying to do this but I dont have any other idea.
What is important:
the most outer div must have height set to auto (or something that allows to autoresize to its content), and page have to be run in standard mode.
Regards
Daniel