-1

So far everything has worked alright with !important, but I can't seem to be able to change the bottom margin of a H5 title. On this link http://soniromanov.com/pricing/ the plans Basic, Deluxe and Premium have an annoying bottom margin of 30px. I've tried with:

.pricing-title h5 { margin-bottom: 0px !important; }

But that doesn't fix it, sorry for my limited knowledge on CSS, please help if possible.

2
  • The page has some kind of (copy protection?) feature that makes using normal inspection tools impossible. I get a "function disabled" dialogue whenever I try to right-click on an element.
    – CK MacLeod
    Commented Jan 19, 2017 at 18:07
  • Sorry buddy, you should be able to right-click now. Commented Jan 19, 2017 at 18:25

1 Answer 1

0

They are using a more specific identifier in the theme on the homepage.

try this one:

.be-section .be-row:not(:last-child) .column-block h5:last-child {
    margin-bottom: 10px !important;
}

you can change the margin to whatever you want, of course.

okay try this:

#main .be-section .be-row:not(:last-child) .column-block h5:last-child {
    margin-bottom: 5px !important;
}
6
  • Tried it, didn't work again. The site is running with this included in the child theme. I'm ready to give up on this until the author fixes it. Commented Jan 22, 2017 at 19:48
  • is there anything else in the child theme stylesheet? put this code at the end. are you sure you have no other errors in your stylesheet that would stop this from posting?
    – rudtek
    Commented Jan 22, 2017 at 20:04
  • This is the style.css I have in the child theme pastebin.com/7nwTVBdr , the code that was recommended is last. Commented Jan 22, 2017 at 20:20
  • yeah, they definitely didn't enqueue correctly. Try the 2nd code above. I've made it more specific, so it should override.
    – rudtek
    Commented Jan 22, 2017 at 20:33
  • You are a savior, after all this days being annoyed by a bottom margin. Can't thank you enough. Commented Jan 22, 2017 at 20:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.