WordPress.org

Forums

TablePress
[resolved] row or column padding (4 posts)

  1. mkpalumbo
    Member
    Posted 2 years ago #

    Hi,

    I am attempting to use the custom CSS feature of tablepress and while I can use it to effect a varity of formating, padding does not seem to take effect. When I look at the resulting code with IE's developer tool, it seems the default wordpress code is not being overriden by the custome code. The truth is, I'm trying to affect the padding in just one column but I can't seem to get it to work regardless of how I simplify it.

    The url of the test table is:
    http://andoverlandscapingllc.com/wordpress/?page_id=5

    And the custom CSS I'm trying is:

    .tablepress-id-1 .row-2 td {
    background-color: #ff0000;
    padding: 0;
    }

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    thanks for your post, and sorry for the trouble!

    In fact, your "Custom CSS" is overriding the TablePress default CSS, but it is not overriding the theme's CSS for tables. To achieve that, just prepend your selector with the #content element, i.e.

    #content .tablepress-id-1 .row-2 td {
      background-color: #ff0000;
      padding: 0;
    }

    (On a side note: IE's developer tools are not really that good. Unless you are investigating specific IE problems, I recommend to switch to Google Chrome and use the much better Chrome developer tools.)

    Regards,
    Tobias

  3. mkpalumbo
    Member
    Posted 2 years ago #

    Thanks. I try that. I don't use IE developer tools for anything else but idenfifying tags, CSS, and their respective files. Sometimes I use firebug too.

  4. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    ah, sorry: Just noticed that there was a typo in my code above (a . was in the wrong position). I just fixed that, so please try again with the code from above, if it was not yet working.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.