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 »

centering tables


  #1  
Old Feb 26, 2009, 04:37 PM
cyberstar
 
2 posts · Feb 2009
for the life of me I cannot figure out how to center tables. The tags either disappear or have no effect on the table.

<table align="center"> -- has no effect

<div style="text-align:center"><table>..... -- no effect

<div align="center"><table>... -- the align part disappears after I update the page

SPAN tag does nothing either.

Thanks in advance for your help!
  #2  
Old Feb 26, 2009, 06:01 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
URL please with the error in action
  #3  
Old Feb 27, 2009, 08:49 AM
cyberstar
 
2 posts · Feb 2009
Flynn,

there is no error. It's just that whatever tags I try to add to center the table, they don't work.

I just figured out that if I type <div align="center"><table>.... in HTML window and do NOT switch to Visual window, then the align="center" part will stay in my code and the table will be centered. But if I switch to Visual editor and then back to HTML editor, then that part disappears.

Anyway, I can live with this, it's just a bit annoying. Is there a site where I can see all the html limitations in WP?

P.S. Awesome theme. I've never seen a theme with customization options. Well done!
  #4  
Old Feb 27, 2009, 09:21 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
In HTML mode in the WP editor try

HTML Code:
<table style="width: XXXpx; margin: 0 auto;">
If that still doesn't work:
HTML Code:
<table style="width: XXXpx; margin: 0 auto !important;">
  #5  
Old Nov 30, 2009, 05:48 AM
gungo
 
31 posts · Jul 2009
San Juan, Puerto Rico
Tried this - but wp strips out the line of code when updated...
Is there a setting in the Atahualpa Options for Style Tables?
Something seems to be overriding the table html in the post.
  #6  
Old Nov 30, 2009, 05:54 AM
gungo
 
31 posts · Jul 2009
San Juan, Puerto Rico
I had some border items in the style line - but took those out and only used the <table style="width: XXXpx; margin: 0 auto !important;"> and it worked fine...
Sorry for previous message - but if anyone else has the problem, make sure there are no other items combined with this line of code...

Bookmarks

Tags
alignment, center, table

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering Image akashiclibrarian Sidebars & Widgets 3 Jun 26, 2009 08:35 AM
Centering Title and tagline PhillM Header configuration & styling 1 Jun 14, 2009 03:39 PM
Using tables??? jim Excerpts, Read more, Pagination 1 Jun 4, 2009 06:04 PM
centering the horizontal bars interage Header configuration & styling 2 Apr 25, 2009 08:45 AM
Using tables Ron Atahualpa 3 Wordpress theme 20 Mar 29, 2009 03:11 PM


All times are GMT -6. The time now is 07:41 AM.


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