That link needs one more vote. Make it yours! Login and vote now.
By mswatcher
via weblogs.asp.net
Published: Jun 19 2008 / 17:52
I previously wrote about taking CSS beyond a simple style library by writing HTML that’s easy to style. I’d like to go into one point in a bit more detail – avoiding class explosion by leveraging descendant selectors:
You might think that really stylable HTML needs classes all over the place. That's not true, thanks to descendant selectors, which let you target elements inside a parent element. For instance, descendant selectors will let you style all > elements which appear inside a > with and id of "nav":
Comments
mostlyharmless replied ago:
Nice, except set the id rather than a class.
Voters For This Link (12)
Voters Against This Link (0)