Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 10: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, 10:42 AM
juggledad's Avatar
juggledad
 
23,765 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, 10:43 AM
lmilesw's Avatar
lmilesw
 
10,176 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, 11: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



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 09:30 PM.


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