Support » Plugin: TablePress - Tables in WordPress made easy » How to reduce height of rows

  • Resolved hma66

    (@hma66)


    Hello There, I created a page while using tablespress on the primary sidebar. Could anyone please let me know how to reduce the height of rows?

    Thanks and regards

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The reason for the increased row height in your table is line breaks. All line breaks in the table cells get transformed to HTML <br /> tags (line breaks in HTML), which increase the row height.

    So, the best way to prevent that, would be to remove all line breaks (from hitting “Enter” on the keyboard).

    Another idea would be to hide the line breaks using some CSS code. For that, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-6 br {
      display: none;
    }

    Regards,
    Tobias

    Thread Starter hma66

    (@hma66)

    Hi Tobias,

    Thank you so much for the wonderful plugin and for the great support as well. It worked perfectly.

    Best Regards,

    Plugin Author TobiasBg

    (@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 ‘How to reduce height of rows’ is closed to new replies.