4 ms·
One of the main ideas behind CSS was to move style and design away from content. While this is a clever trick, it pollutes your CSS with application logic that
by jamesrom 16y ago
One of the main ideas behind CSS was to move style and design away from content.
While this is a clever trick, it pollutes your CSS with application logic that should be separated from your design.
- HTML for content and markup
- CSS for design and style
- JavaScript for client application logic
- catshirt 16y agoseparation of style, logic, and content is virtuous- but your qualifications for "style" seems to be demanding and/or arbitrary. is hiding all unordered lists after an unchecked checkbox not a style? additionally, styling by attribute is hardly a different than styling by class. it just so happens that this attribute is dynamic. the actual logic that's taking place here is not in the css; it is inherently handled by the browser.