J
Jeroen
The <center> element is not an element in html-4.01-strict,
and 'align' is not an attribute of a <div>.
The W3C states that I should use style="text-align: center",
but that only works for text and not for block-elements.
http://www.w3.org/TR/REC-html40/present/graphics.html#edef-CENTER
What should I use instead of <center> ???
--------------
The old way:
<body><center>
Hello y'all<BR>
<table style="width:400px; background-color:#DDDDDD">
<tr><td>hello</td><td>y'all</td></tr>
<tr><td>hello</td><td>y'all</td></tr>
<tr><td>hello</td><td>y'all</td></tr>
</table>
</center></body>
-------------
-------------
The new way proposed by W3C (the table isn't in the center):
<body style="text-align: center">
Hello y'all<BR>
<table style="width:400px; background-color:#DDDDDD">
<tr><td>hello</td><td>y'all</td></tr>
<tr><td>hello</td><td>y'all</td></tr>
<tr><td>hello</td><td>y'all</td></tr>
</table>
</body>
-------------
Greetings,
Jeroen
and 'align' is not an attribute of a <div>.
The W3C states that I should use style="text-align: center",
but that only works for text and not for block-elements.
http://www.w3.org/TR/REC-html40/present/graphics.html#edef-CENTER
What should I use instead of <center> ???
--------------
The old way:
<body><center>
Hello y'all<BR>
<table style="width:400px; background-color:#DDDDDD">
<tr><td>hello</td><td>y'all</td></tr>
<tr><td>hello</td><td>y'all</td></tr>
<tr><td>hello</td><td>y'all</td></tr>
</table>
</center></body>
-------------
-------------
The new way proposed by W3C (the table isn't in the center):
<body style="text-align: center">
Hello y'all<BR>
<table style="width:400px; background-color:#DDDDDD">
<tr><td>hello</td><td>y'all</td></tr>
<tr><td>hello</td><td>y'all</td></tr>
<tr><td>hello</td><td>y'all</td></tr>
</table>
</body>
-------------
Greetings,
Jeroen