3 ms·
I don't understand why tailwind would force you to write more divs then CSS. How do selectors solve the problem of how many elements you need to use to achieve
by Loeffelmann 3y ago
I don't understand why tailwind would force you to write more divs then CSS. How do selectors solve the problem of how many elements you need to use to achieve the same design?
- tipiirai 3y agoExtra divs are wrappers that help you style the parent element to add flex layouts for example. Or why do you think the official Tailwind template has so many nested divs with utility classes?
- Loeffelmann 3y agoSure but how would normal css make it so you don't have to use those?
- tipiirai 3y agoMaybe check out the semantic CSS example using developer console: https://nuejs.org/@spotlight/ https://nuejs.org/@spotlight/