Saturday, October 22, 2011

Tip: Multiple class per element

Below is an example on how to use multiple classes per element. I needed it when I used the 960.gs grid framework.

<style>
.blue {
color: blue; /*makes the font blue*/
}
.underline{
text-decoration:underline;
}
</style>

<div class="grid_12 blue underline">Make me blue and underline using three different classes</div>
The space separates the two classes. KISS

many classes

No comments:

Post a Comment