3 ms·
Sounds like a call to return to the days of <P ALIGN="LEFT">. I occasionally use attribute selectors - really useful when you have crazy requirements like "Her
by Tade0 2y ago
Sounds like a call to return to the days of <P ALIGN="LEFT">.
I occasionally use attribute selectors - really useful when you have crazy requirements like "Here's a table with rows having generated data-index attributes. Make the background of each[0] prime-indexed row blueish".
For other uses classes are quite simply shorter.
Also, if I have to write a lot of CSS then either:
-The stakeholders insist on an "unique look", in which case kill me.
-I'm making a component framework of sorts. If it's an internal project, also kill me.
[0] well, not "each". Just the first 100 or so. Users don't read long lists anyway.
- mananaysiempre 2y agoI mean, Tailwind already is that with extra steps.