@siriusmart to Programmer [email protected] • 1 year agoNoooooo my divimagemessage-square26arrow-up1543arrow-down117
arrow-up1526arrow-down1imageNoooooo my div@siriusmart to Programmer [email protected] • 1 year agomessage-square26
minus-squareXylight (Photon dev)linkfedilinkEnglish35•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-square@[email protected]linkfedilink13•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-square@[email protected]linkfedilink6•1 year agoThe fact that this and the prior comments work don’t make like CSS more tbh
minus-square@MellowSnowlink2•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-square@[email protected]linkfedilink2•1 year agothis and the parent comment have blown my mind.
!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.
deleted by creator