siriusmart@lemmy.world to Programmer Humor@lemmy.ml · 2 years agoNoooooo my divlemmy.worldexternal-linkmessage-square10linkfedilinkarrow-up110arrow-down11
arrow-up19arrow-down1external-linkNoooooo my divlemmy.worldsiriusmart@lemmy.world to Programmer Humor@lemmy.ml · 2 years agomessage-square10linkfedilink
minus-squareXylight (Photon dev)@lemmy.xylight.devlinkfedilinkEnglisharrow-up2·2 years 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-up2·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-up2·2 years agoThe fact that this and the prior comments work don’t make like CSS more tbh
minus-squareAlecSadler@lemmy.mllinkfedilinkEnglisharrow-up1·2 years agoI actually encountered an issue earlier today where my important wasn’t working…and it was because another dev had already added a more specific important. I deleted their important.
minus-squareGombeenSysadmin@feddit.uklinkfedilinkarrow-up0·2 years agoWhen I read that, I can never not say “not important” in my head
minus-squarehellishharlot@programming.devlinkfedilinkarrow-up1·2 years agoYeah I think that makes CSS a manager. It’s always prioritizing not important things
z-index: 999999 !important;
!didistutter?;
!importanter;
fun fact:
!important !importantis 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
I actually encountered an issue earlier today where my important wasn’t working…and it was because another dev had already added a more specific important.
I deleted their important.
When I read that, I can never not say “not important” in my head
Yeah I think that makes CSS a manager. It’s always prioritizing not important things