3 ms·
The best use of "!important" is for utility classes. For example, if you want to just have a single class that determines when something is hidden, it's a lot e
by russelluresti 10y ago
The best use of "!important" is for utility classes. For example, if you want to just have a single class that determines when something is hidden, it's a lot easier to have a ".hidden" class that has "display: none !important" on it that overrides any other display you may have set. Otherwise, you'd need to have a ".Module_hidden" class for every single module or component you have - which is dumb.