rkstevens Posted April 14, 2008 Share Posted April 14, 2008 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. Link to comment https://forums.phpfreaks.com/topic/100978-solved-centering-objects-without-using-ltcentergt/ Share on other sites More sharing options...
AndyB Posted April 14, 2008 Share Posted April 14, 2008 I do hope the table is for displaying tabular data, not for layout. Here's your CSS answer: http://www.granneman.com/webdev/coding/css/centertables/ Link to comment https://forums.phpfreaks.com/topic/100978-solved-centering-objects-without-using-ltcentergt/#findComment-516400 Share on other sites More sharing options...
rkstevens Posted April 14, 2008 Author Share Posted April 14, 2008 I do hope the table is for displaying tabular data, not for layout. Yes it is for data, not layout. Link to comment https://forums.phpfreaks.com/topic/100978-solved-centering-objects-without-using-ltcentergt/#findComment-516590 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.