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! |
URL please with the error in action
|
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! |
In HTML mode in the WP editor try
HTML Code:
<table style="width: XXXpx; margin: 0 auto;"> HTML Code:
<table style="width: XXXpx; margin: 0 auto !important;"> |
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. |
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.