• Resolved bulletjie

    (@bulletjie)


    I have added a table here https://www.refsolgroup.com ,but the lines keep wrapping. I have added the following short code on the page [table id=1 alternating_row_colors=false column_widths=”80px|120px|80px|150px|100px|120px”/]
    and played around with that but can not seem to get the table to fit on the pagewidth. I suspect that the cell padding might be the problem, but can set it to a smaller value (I tried <table cellspacing=”0″ cellpadding=”0″ border=”0″><tr><td>…</td></tr></table> but am not sure where it should be added and how.

    Please excuse my ignorance, I am still very new to wordpress and php.

    https://www.ads-software.com/plugins/tablepress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bulletjie

    (@bulletjie)

    sorry the page where the table is are https://www.refsolgroup.com/admin/contact-us

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Setting column widths won’t help here, unfortunately, so I recommend to remove those parameters from the Shortcode again.
    Then, adjusting the padding is possible with CSS code. Please try adding this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    #content .tablepress tbody td {
      padding: 6px;
    }

    That extra #content is necessary to override this CSS in your theme.

    Regards,
    Tobias

    Thread Starter bulletjie

    (@bulletjie)

    Thank You Tobias, excellent, worked like a charm, table even centered now as well.

    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 4 replies - 1 through 4 (of 4 total)
  • The topic ‘column widths’ is closed to new replies.