Pinegrow Community Support Forum

CSS !important Rule: How to Use It Correctly

https://appendto.com/2016/04/css-important-rule-how-to-use-it-correctly/

Good article, especially as my instincts were right :grin:

Another article here (from 2011) which is a good read, offering examples of when the use of important, is the right choice

Maybe (to some) it isn’t important but it’s nice to get yourself into good habits, especially when building your own templates or block kits, get the structure right and you should never have to use important.

it’s funny i posted this as I was having an issue updating part of the default bootstrap navbar, but I was convinced I never had this problem before.

This is what I love about pinegrow, it helped me find the following rule that I needed to override

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover,.navbar-default .navbar-nav > .open > a:focus

Allowing me to add transparent or my choice of color, without adding important. May not be interesting to many, but Pinegrow helps me customise Bootstrap without having to use important and I thank you Pinegrow