• Resolved boborg

    (@boborg)


    I am using borders for tablepress table. I have added a spacer row with colspan to make the table more readable. For avoiding borders on that row I have set up the css:

    .tablepress-id-75 .row-3 td
    {
    border: 0px!important;
    }

    Works fine. But later on I am displaying some specific rows from the same table again using the hide_rows option. And of course now row 3 in this version of the table (same id so same css) has no borders when I actually do want borders.

    Other than making a new table for this purpose with the same data anyone got any clever idea to work around this?

    http://wordpress.org/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Yes! 🙂 You could use the extra_css_classes Shortcode parameter in the Shortcode of the table where you want the border removed.

    Use e.g.

    [table id=75 extra_css_classes="tablepress-id-75-no-border" /]

    and then change the “Custom CSS” to

    .tablepress-id-75-no-border .row-3 td {
      border: 0px!important;
    }

    Regards,
    Tobias

    Thread Starter boborg

    (@boborg)

    Amazing Tobias,

    Will try that.

    Thread Starter boborg

    (@boborg)

    And it works just fine. This plugin is really a favorite of mine…

    Think I will be donating again soon 🙂

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great to hear that this helped. Thanks for the confirmation! 🙂

    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 ‘Borders row css workaround?’ is closed to new replies.