this post was submitted on 11 Aug 2023
496 points (97.0% liked)
Programmer Humor
32479 readers
493 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
!importanter;
fun fact:
!important !important
is essentially!importanter
, and you can go even further if you want a hell of a css hierarchyYou can also just write your class again as some sort of additional specificity like
.myclass.myclass.myclass { color:red !important !important; }
The fact that this and the prior comments work don't make like CSS more tbh
Like most things in the world of dev, there are right and wrong ways to do things. Just because you can doesn't mean you should! CSS can be quite nice when used correctly!
this and the parent comment have blown my mind.