This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How to change padding of Price Table cells (like Title cell)

5 years ago · Last reply by Andrew Misplon 5 years ago

Hi,
I’m struggling to figure out how to customize Price Table widget. The title table has 20px padding (top and bottom), and I’d like to know how to reduce it. I’ve tried overriding CSS (.ow-pt-title) like this:

.ow-pt-title {
padding: 0px 0;
}

but it didn’t work. How can I change it?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Lord Beta 5 years, 8 months ago

    Never mind, it seems it’s working, the preview page that I was constantly reloading was “out of date” (I guess you need to click on the PREVIEW button each time you make some deeper changes).

  2. Lord Beta 5 years, 8 months ago

    Hm, and it ignores it again. I’m not sure how this works… If I open my page in Chrome and inspect the Price Table, this is what it gives me:
    https://betalord.com/tmp/pricetableproblem.png
    In “Appearance -> Custom CSS” I do:

    .so-widget-sow-price-table-atom-72df40a532e5 .ow-pt-columns-atom .ow-pt-column .ow-pt-title {
      padding: 0px;
    }

    So, why it doesn’t use my custom CSS in this case? What am I doing wrong?

  3. Andrew Misplon Staff 5 years, 8 months ago

    Hi Lord

    You’re most likely encountering a cascade issue https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_and_inheritance.

    You could either make your rule more specific or add !important

    padding: 0px !important;

  4. Lord Beta 5 years, 8 months ago

    Yep, “!important” did it, thanks!

  5. Andrew Misplon Staff 5 years, 8 months ago

    Super, glad to hear that helped :)

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread