I am having trouble getting the background color of tables I placed within a post to show up once published. I wrote the code using html while in the html view. The background color shows properly when I switch over to the visual editor view, but once I publish the post, it shows white on the site.
Any ideas how I might correct this issue.
I appreciate your help.
Thanks,
Vicki
Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of specific help.
the link is http://bookmoresellmore.com but you won't be able to see much. It just looks like regular text on a white background. The last sentence at the bottom of the page is a test phrase that should have a pink bacground. The table itself works fine, it's just the background color that doesn't show when published.
You need to place some content in your table so we can see it. Right now, there is absolutely no background color attached to the (empty) table. Switching from the HTML to Visual tab isn't a good idea either as it can, and will, remove some markup.
There is text in it. The last sentence "testing, testing" is in the tables.
No it's not. It's in <p></p> tags just before the table markup.
Not in my html editor, it isn't. This is what is showing in my editor:
'<table bgcolor="#ffccff">
<tr>Testing, testing</tr>
</table>'
So what would cause it to be different once it is published?
I just rewrote the table code again in the html editor, did not switch to visual, published, and the same thing happened. I do not understand why the text would show up in between '<p></p>' tags when it is not that way in my editor.
I'm sorry but it's still showing up outside of the (empty) table - probably because your table markup is incorrect. Try using:
<table style="background-color:#ffccff">
<tr>
<td>Testing, testing</td>
</tr>
</table>
Esmi, thank you SO much! That did the trick. It works perfectly!
I am not a coder, so I used an example that was on an html tutorial. Apparently, it was incorrect.
Thanks again! You're awesome!
Glad to hear that you got it working. :-)