Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   centering tables (http://forum.bytesforall.com/showthread.php?t=564)

cyberstar Feb 26, 2009 04:37 PM

centering tables
 
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!

Flynn Feb 26, 2009 06:01 PM

URL please with the error in action

cyberstar Feb 27, 2009 08:49 AM

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!

Flynn Feb 27, 2009 09:21 AM

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;">

gungo Nov 30, 2009 05:48 AM

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.

gungo Nov 30, 2009 05:54 AM

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...


All times are GMT -6. The time now is 11:20 PM.

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