Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

John Esposito curates content at DZone, while writing a dissertation on ancient Greek philosophy and raising two cats. In a previous life he was a database developer and network administrator. John is a DZone Zone Leader and has posted 268 posts at DZone. You can read more from them at their website. View Full User Profile

Improve Your CSS Kung-Fu: Chris Coyier's Best Practices for HTML and CSS

11.01.2011
Email
Views: 2160
  • submit to reddit

Lots of us 'know' CSS but don't use it to the max. More perniciously, despite demos like the famous zen garden, it's easy to forget about some of the more powerful -- but more abstract --  applications of CSS.

Keeping in mind that old programming habits die hard, Chris Coyier put online some very slick and very useful slides from his talk at the Future of Web Apps conference in London earlier this month.

The challenge? Really, really don't write more code than you need to. Particularly (slide 32) he suggests:

Don't use ID's in your CSS whatsoever for one small project.

That might be tricky, unless you're already a CSS master. If not, then remember: no shortcuts during creation means no waste during curation. A stitch in time saves nine. Which isolates nicely part of why CSS is so great (besides letting you make stuff look cool).

Click through the slides and exercise your CSS-jitsu:

 

 

Published at DZone with permission of its author, John Esposito.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)