Support » Plugin: TablePress » Space after description when it is below table

  • Resolved Jim

    (@jwmc)


    Greetings. Tablepress makes very attractive tables with little CSS fuss. But recently I made tables with descriptions after the table (using them like footnotes to the table).

    The description is so close to the next paragraph, without even paragraph spacing, so it looks like the description and next paragraph are one paragraph.

    The first problem I saw is that the description is not part of the table, so I couldn’t target it with being in a table and a sequence of something like tbody -> description (to avoid adding space when description comes first.

    Then I noticed the description is in a span – I’m not even sure they have margin properties.

    So I’m stumped – any thoughts? Is there a way to target the span only if it immediately follows a table, with no elements in between?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jim

    (@jwmc)

    I think I figured it out.

    table.tablepress + span.tablepress-table-description {
    	margin: 0em 1em 1em 2em;
    	font-size: 0.8em;
    }

    Or is there a better way?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Nice find! Yes, in your theme, the description didn’t have enough spacing, but your CSS nicely solves that.

    Best wishes,
    Tobias

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.