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. Quote 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/ Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.