Forum Moderators: not2easy
<table width="300px" align="center"
<tr>
<td>
<p>Text here</p>
</td>
</tr>
</table>
This works in HTML, and I'd like to do the same thing with CSS. My best attempt is below.
<table style="width=300px; align: center;">
<tr>
<td>
<p>Text here</p>
</td>
</tr>
</table>
But instead of
<table style="width=300px; align: center;">
centering the table on the page, it centers the text inside the table.
Help!
But I'm still having trouble with the scroll bar on the side. For some reason, when I resize the window and the scroll bar gets close to the right margin, the page stops centering. And the bottom scroll bar doesn't appear until the side scroll bar is against the right margin. What I'd like is to set the table width to 300px and have the table centered on the page for all window widths more than that.