CSS: Multi-class Attributes

Post on January 25th, 2007

HTML attributes tend to just have a single class assigned, but this doesn’t mean that that’s all you’re allowed. You can combine as many classes as you wish, meaning a CSS palette containing just a few basic ingredients can leand to a much wider range of styles if combined intelligently.

Classes should be separated with a space, not a comma. If any style rules overlap between the classes, a class further down the CSS document will always override those above.

<h6 class="boxout highlighted">...</h6>

From CSS

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.