I've just discovered <center>
is obsolete in HTML5, but it works fine in IE9 with <!DOCTYPE html>
:
http://www.w3.org/TR/html5/obsolete.html#obsolete
The alternative is to use CSS text-align, but I get conflicting results:
<body>
<table style="text-align:center">
<tr>
<th>Column</th>
</tr>
<tr>
<td>Data</td>
</tr>
</table>
<p style="text-align:center">Text</p>
</body>
Any suggestions on how to center both the table
content and the p
content within the page? (I can't see what's so bad with <center>
anyway).