I figure before I go and write my summary of why you should go back to
tables and only use CSS for fonts and colors and stuff, I ought to make
sure I've got my facts right. So, please tell me how I can get this:
<div style="border:1 px solid #000;width:100% ">
<table style="backgrou nd:#CABE9E;
margin:10px 10px 10px 10px;
border-bottom:4px solid #000;
border-left:4px solid #000;
border-right:4px solid #000;
border-top:4px solid #000;
width:100%;">
<tr><td>some table stuff...</td><td>spills over in firefox, and
causes everpresent vertical scroll in IE</td></tr></table>
</div>
to look like this:
<table cellspacing="0" cellpadding="1" bgcolor="000000 "
width="100%"><t r><td>
<table bgcolor="ffffff " cellpadding="8" cellspacing="0"
width="100%"><t r><td>
<table bgcolor="000000 " cellpadding="4" cellspacing="0"
width="100%"><t r><td>
<table bgcolor="CABE9E " cellpadding="4" width="100%"><t r><td>some
table stuff...</td><td>spills over in firefox, and causes everpresent
vertical scroll in IE</td></tr></table></td></tr></table>
</td></tr></table>
</td></tr></table>
Try them in both IE and Firefox.
Apparently the spec for CSS says that the border and margins shouldn't
be counted when calcing the size of the div/table. Take a look at this
(these) bug reports:
https://bugzilla.mozilla.org/show_bug.cgi?id=258523
But IE does something bad too- notice that you get a horizontal scroll
bar at the bottom, no matter how wide your screen goes (with the CSS
version).
But the table version looks fine in both browsers.
Anyway, if I'm missing something that would fix this, tell me.