3 ms·
If scoping CSS is such a big deal, I've got to ask if its not easier to just go with inline-CSS instead. It's a matter of whether specifying styling rules separ
by tannhaeuser 9y ago
If scoping CSS is such a big deal, I've got to ask if its not easier to just go with inline-CSS instead. It's a matter of whether specifying styling rules separately from content markup is a good fit to your app or doc, or if you're rather working around an undesired far-distance effect of CSS. If you need complete style isolation from the rest of your site, then you're really writing HTML markup to express an UI, so why not express it in a single artifact or dynamically generated HTML along with properties in plain old HTML style attributes?
- nateroling 9y agoInline CSS is underrated. Sometimes you just need one big red button, not a .big-red-button class.
- y4mi 9y agocss doesnt constrain you to classes. there are other selectors as well.