Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] Unable to center table on page

Old Oct 15, 2014, 10:15 AM
4 posts · Oct 2014
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">

css insert
#table1 {
margin-left: 03% ;
margin-right: auto;

I did try auto instead of 03% - not work. Thank you for any assistance.
Old Oct 15, 2014, 10:42 AM
juggledad's Avatar
23,696 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Try this
HTML Code:
div#table1 {
 div#table1 table {
    margin: 0 auto; 
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Oct 15, 2014, 10:43 AM
lmilesw's Avatar
10,174 posts · Jul 2009
Central New York State USA
To center an item with CSS you also have to give it a width and then set the side margins to auto.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Old Oct 15, 2014, 11:21 AM
4 posts · Oct 2014
Won't pretend to understand the code but the code you provided worked. Thank you both and thank you for quick replies.


center table

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Type won't center in table cells mjuel Center area post/pages 1 Aug 27, 2013 03:00 PM
Unable to set background image in center column on one page NetMonkey Center area post/pages 1 Feb 18, 2013 01:20 PM
Table will not center in Page bluesboy Center area post/pages 9 Mar 4, 2011 01:00 PM
[SOLVED] How to center text in the table? ochayemin Center area post/pages 3 Feb 7, 2011 11:48 PM

All times are GMT -6. The time now is 03:10 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.