4 ms·
If CSS is written properly it can cascade! I think some people enjoy doing more work than they need because sometimes it adds fun or makes their particular job
by err4nt 11y ago
If CSS is written properly it can cascade! I think some people enjoy doing more work than they need because sometimes it adds fun or makes their particular job on a team less intense. But I get paid based on how much work I am able to do, so getting things done as directly and pragmatically as possible benefits me the most.
You can also use some expressions to match selectors in CSS, for example I use `.float-none`, `.float-left`, and `.float-right` as class names for my basic image floats. I can select all images with these classes applied with `img[class^="float-"]` and I can catch individual classes with `.float-left` or something like `img[class*="-right"]`. I think people would sooner learn and use tools that promise to make CSS easy, instead of advancing their CSS skills.
Check out http://elementqueries.com http://elementqueries.com for some of the crazy fun stuff you can do with CSS by extending the language with a little JS. I'd sooner write styles like this that let you reduce the amount of HTML and CSS you have to write than to start introducing extra steps and tools between my files and the browser that multiply the amount of HTML and CSS being output before I can see the result.
I do also author and publish my own CSS stylesheets and plugins that can be used in other sites, so pretty quickly I can bring good CSS into any codebase to fix most common problems.