Jump to content

[SOLVED] Centering objects without using <center>


rkstevens

Recommended Posts

I want to center a TABLE on my page with CSS, and have the same effect as the following code:

<center>
<table>
  .....
</table>
</center>

 

Setting style='text-align: center' does not work, as it centers all of the text within the table, not the table itself.

 

Thank you for your suggestions.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.