3 ms·
Isn't it odd to have class div1 div2 etc. Isn't that what the style attribute is for?
by beardyw 2y ago
Isn't it odd to have class div1 div2 etc. Isn't that what the style attribute is for?
- Akronymus 2y agoThe style attributes can get pretty long and hard to read. I personally prefer the approach of assigning it via classnames/ids, so that it's shorter in the html itself, along with being easier to switch out components. (Altough, I also use htmx, so that's another reason to go with classnames/ids)