WordPress.org

Support

Support » Plugins and Hacks » [Resolved] row or column padding

[Resolved] row or column padding

  • mkpalumbo
    Member

    @mkpalumbo

    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/

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

    @tobiasbg

    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

    mkpalumbo
    Member

    @mkpalumbo

    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.

    Plugin Author TobiasBg
    Participant

    @tobiasbg

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] row or column padding’ is closed to new replies.