C
chrisn
Hi,
I've been to www.csszengarden.com, and I'm halfway through Dave Shea's
excellent book "The Zen of CSS".
I've now been convinced of the case for using CSS for layout instead of
tables. However, I am finding some things exceedingly difficult to
manage, although I have had some early successes and the resultant Html
code is sooo much smaller.
Anyway, here's what I'm trying to do, I have a genuine table for data,
which I want to fill the horizontal width of the screen, with a margin
all around it.
My target browser is IE 5.1 and upwards.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<style>
body {margin:0px;}
table {width:100%;border:1px solid silver;margin:10px;}
td {border:1px solid silver;}
div.#Header {background-color:silver;height:40px;}
</style>
</head>
<body>
<div id="Header">...this is my header...</div>
<table>
<tr><td>table</td><td>of</td></tr>
<tr><td>data</td><td>...</td></tr>
</table>
</body>
</html>
Thanks in advance,
Chris N
I've been to www.csszengarden.com, and I'm halfway through Dave Shea's
excellent book "The Zen of CSS".
I've now been convinced of the case for using CSS for layout instead of
tables. However, I am finding some things exceedingly difficult to
manage, although I have had some early successes and the resultant Html
code is sooo much smaller.
Anyway, here's what I'm trying to do, I have a genuine table for data,
which I want to fill the horizontal width of the screen, with a margin
all around it.
My target browser is IE 5.1 and upwards.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<style>
body {margin:0px;}
table {width:100%;border:1px solid silver;margin:10px;}
td {border:1px solid silver;}
div.#Header {background-color:silver;height:40px;}
</style>
</head>
<body>
<div id="Header">...this is my header...</div>
<table>
<tr><td>table</td><td>of</td></tr>
<tr><td>data</td><td>...</td></tr>
</table>
</body>
</html>
Thanks in advance,
Chris N