Simple Solutions Often The Best

From Eric Meyer comes this wonderfully simple solution for dealing with Internet Explorer’s lack of support for the CSS child selector.

#main * {background: #FFF;}

#main * * {background: transparent;}

Yup. That’s it. Makes a ton of sense, easy to read, and gotchas are relatively small. So into my toolbox it goes right next to * { margin:0; padding:0 } to set up a page.

Comments Temporarily(?) Removed