News for hackers. Stuff that matters.
Re:Pure CSS collapsible tree menu by jamesrom on Friday February 04, 2011 @09:59PM (#2182300)
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

Re:Pure CSS collapsible tree menu by catshirt on Friday February 04, 2011 @11:04PM (#2182418)
separation 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.