GregorTacTac@lemm.ee to Programmer Humor@programming.dev · 1 year agoAverage CSSlemm.eeimagemessage-square86fedilinkarrow-up1568arrow-down119file-text
arrow-up1549arrow-down1imageAverage CSSlemm.eeGregorTacTac@lemm.ee to Programmer Humor@programming.dev · 1 year agomessage-square86fedilinkfile-text
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up6·1 year agoAren’t classes in CSS supposed to represent visual styles? What else could they be for?
minus-squareMesa@programming.devlinkfedilinkarrow-up21·1 year agoPretty sure they’re referring to class names describing the visual style being applied, rather than what that class represents semantically. E.g. .red-bold vs. .error-text
Aren’t classes in CSS supposed to represent visual styles? What else could they be for?
Pretty sure they’re referring to class names describing the visual style being applied, rather than what that class represents semantically.
E.g.
.red-bold
vs..error-text
Oh, that makes sense.