[SOLVED] Unable to center table on page
Working on table that contains images at http://www.mysweetmocha.com/manual-c...ahead-of-time/
I followed instructions found in this forum but table does not center on page. html on page: <div id="table1"> </div> css insert #table1 { margin-left: 03% ; margin-right: auto; } I did try auto instead of 03% - not work. Thank you for any assistance. |
Try this
HTML Code:
div#table1 { |
To center an item with CSS you also have to give it a width and then set the side margins to auto.
|
Won't pretend to understand the code but the code you provided worked. Thank you both and thank you for quick replies.
|
All times are GMT -6. The time now is 11:05 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.