3 ms·
What would :important match?
by zagrebian 5y ago
What would :important match?
- sfblah 5y agoMaybe the html tag could include an important flag
- Izkata 5y ago<html id="root"> #root#root#root div.legaltext { font-size: 12pt; } That gives you a specificity that should override everything else. Would only be a problem if some other rule has 3 or more IDs, in which case you can add more here.
- asddubs 5y agocss truly is a beautiful language I'm thankful that I only ever do it in contexts where I control all the CSS and don't have to do silly stuff like that
- zagrebian 5y agoThen it’s no longer CSS and you have to edit the HTML code to apply the important styles.
- ailef 5y agoI think in this scenario it is supposed to match all div.legal elements. The styles are then applied with the highest priority, thus overriding other rules.
- slim 5y agothat would make css uncoherent