• Resolved carollynn

    (@carollynn)


    I have a couple of rows that I’m applying a special class to so that it has a specific background color. I’m putting the class right around the content in the cell itself. It’s working ok but the problem I’m having is that there is a 4px padding on the td by default. I tried setting my class td to padding 0 but that doesn’t seem to make a difference. So I’m ending up with white space around my background color within the cell.

    This is the css I have for my class:

    .wp-table-reloaded td .highlight { background-color: #dfef2e; font-weight: bold; padding: 0px; }

    Maybe this isn’t the best way to do this but I was a little confused on how to add custom css to the table so I added the CSS to the regular theme css.

    Any ideas? Thanks!

    https://www.ads-software.com/extend/plugins/wp-table-reloaded/

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    to remove that padding, you would need to remove it from the surrounding td elements, e.g. with

    .wp-table-reloaded td {
      padding: 0 !important;
    }

    Unfortunately, this will affect all cells, even those with the .hilite element in theme. This is just how CSS works, and I’m not aware of a way around this ??

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘WP-Table Reloaded – remove/change cell padding’ is closed to new replies.