• Resolved Chris

    (@osiak)


    Hi,
    I thought I can add HTML tags to table cells. When I put this:

    <div>HEADER</div><br>
    <div><a href="link_url">LINK</a></div>

    I get everything cramped in one line (see screen: https://ibb.co/VYv25kt).

    Am I doing something wrong?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    This seems to be happening due to some CSS in your theme:

    body {
    	line-height: 0!important;
    }

    I recommend to turn that off in tables. For that, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress {
    	line-height: normal !important;
    }

    Note that you should not need the extra <div> tags, and also not the <br> tag.

    Regards,
    Tobias

    Thread Starter Chris

    (@osiak)

    OMG, thanks. Looked through the CSS but must have omitted this. Thanks!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML headers and multiple lines in cell’ is closed to new replies.