siriusmart@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoNoooooo my divlemmy.worldimagemessage-square22fedilinkarrow-up1506arrow-down117
arrow-up1489arrow-down1imageNoooooo my divlemmy.worldsiriusmart@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square22fedilink
minus-squareXylight (Photon dev)@lemmy.xylight.devlinkfedilinkEnglisharrow-up36·1 year agofun fact: !important !important is essentially !importanter, and you can go even further if you want a hell of a css hierarchy
minus-squarewhatisallthis@lemm.eelinkfedilinkarrow-up14·1 year 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·1 year agoThe fact that this and the prior comments work don’t make like CSS more tbh
minus-squareMellowSnow@lemmy.worldlinkfedilinkarrow-up2·1 year 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-up1arrow-down1·1 year agothis and the parent comment have blown my mind.
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.
This… exists? This is horrible.