KnotGoblin
Technical User
I am trying to move a web application from tables to using more <div>'s.
IE:
I am having a problem with a <div> inside of a <div>. The nested div (header and footer) does not stretch to the full width of its containing <div>. It seems to be only staying in the viewing window--not it's containing div. As you decrease the size of the window the nested div decreases as well. if you decrease the viewing window to a smaller size than the table this becomes more obvious.
Firefox:
When the viewing window is too small the containing div stays with in the viewing window while the table is stretched beyaond the window.
NOTE: Th
here's the css:
here's the html:
So i quess my question is:
How do I keep the nested <div>'s width 100% of the containing <div> even if the viewing window is smaller in IE.
In FF how do I keep the table inside the div.
Hope this makes sense. Kinda hard to explain.
thanks.
-Jer
IE:
I am having a problem with a <div> inside of a <div>. The nested div (header and footer) does not stretch to the full width of its containing <div>. It seems to be only staying in the viewing window--not it's containing div. As you decrease the size of the window the nested div decreases as well. if you decrease the viewing window to a smaller size than the table this becomes more obvious.
Firefox:
When the viewing window is too small the containing div stays with in the viewing window while the table is stretched beyaond the window.
NOTE: Th
here's the css:
Code:
#main
{
border: solid 1px Gray;
}
.header, .footer
{
color: White;
background-color: Black;
}
here's the html:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<div id="main">
<div class="header">Header</div>
<table border="1" width="100%">
<tr>
<td>Proin ullamcorper.</td>
<td>Etiam vel wisi.</td>
</tr>
<tr>
<td>Pellentesque mollis augue nec leo.</td>
<td>Proin ullamcorper</td>
</tr>
</table>
<div class="header">Footer</div>
</div>
</body>
</html>
So i quess my question is:
How do I keep the nested <div>'s width 100% of the containing <div> even if the viewing window is smaller in IE.
In FF how do I keep the table inside the div.
Hope this makes sense. Kinda hard to explain.
thanks.
-Jer