Forums

[resolved] Background color in tables not showing (11 posts)

  1. vlgee
    Member
    Posted 1 year ago #

    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  3. vlgee
    Member
    Posted 1 year ago #

    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.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  5. vlgee
    Member
    Posted 1 year ago #

    There is text in it. The last sentence "testing, testing" is in the tables.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    No it's not. It's in <p></p> tags just before the table markup.

  7. vlgee
    Member
    Posted 1 year ago #

    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?

  8. vlgee
    Member
    Posted 1 year ago #

    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.

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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>
  10. vlgee
    Member
    Posted 1 year ago #

    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!

  11. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Glad to hear that you got it working. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic