siriusmart@lemmy.world to Programmer Humor@lemmy.ml · 2 years agoNoooooo my divlemmy.worldimagemessage-square21fedilinkarrow-up1513arrow-down116
arrow-up1497arrow-down1imageNoooooo my divlemmy.worldsiriusmart@lemmy.world to Programmer Humor@lemmy.ml · 2 years agomessage-square21fedilink
minus-squarewhatisallthis@lemm.eelinkfedilinkarrow-up14·2 years agoYou can also just write your class again as some sort of additional specificity like .myclass.myclass.myclass { color:red !important !important; }
minus-squareFUsername@feddit.delinkfedilinkarrow-up7arrow-down1·2 years agoThe fact that this and the prior comments work don’t make like CSS more tbh
minus-squareMellowSnow@lemmy.worldlinkfedilinkarrow-up2·2 years agoLike 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!
minus-squarehavocpants@lemm.eelinkfedilinkarrow-up2arrow-down1·2 years agothis and the parent comment have blown my mind.
You 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.