April 1, 2002

Well Damn. I didn't know you could do that.

You can really file this under “You learn something new everyday”. CSS2. It’s fantastic. This site uses it. Just not as well aparantly as I should be. This article talks about combining classes.

It basically boils down to the fact that rather that expanding out your style sheet to 50 different entries, all similar, is that you can have basic, modular classes that you combine. Image a style for a border, one for font, one for color, one for placement. It’d read class=”Bordered Font Green Right” (if your classes were named those items). But four classes applied to one div.

David, from catcode.com, apparantly learnt this from the W3C pages. This is very impressive, as I find the W3C pages basically unreadable and unnavigatable.
Post Info

Tagged As CSS

Comments are Open (0)

Posted at 12:00 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu