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


  #1  
Old Oct 15, 2014, 09:15 AM
lrydant
 
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">
</div>

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

I did try auto instead of 03% - not work. Thank you for any assistance.
  #2  
Old Oct 15, 2014, 09:42 AM
juggledad's Avatar
juggledad
 
23,626 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Try this
HTML Code:
div#table1 {
    width:100%;
    height:100%;
  }
 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
  #3  
Old Oct 15, 2014, 09:43 AM
lmilesw's Avatar
lmilesw
 
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.
  #4  
Old Oct 15, 2014, 10:21 AM
lrydant
 
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.

Bookmarks

Tags
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 02:00 PM
Unable to set background image in center column on one page NetMonkey Center area post/pages 1 Feb 18, 2013 12:20 PM
Table will not center in Page bluesboy Center area post/pages 9 Mar 4, 2011 12:00 PM
[SOLVED] How to center text in the table? ochayemin Center area post/pages 3 Feb 7, 2011 10:48 PM


All times are GMT -6. The time now is 07:21 PM.


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