Monday, August 24, 2009

Two CSS Class Styles

Css attributes are specified to one class, but, you can specify as more classes


.style1 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 12px;
}
.fontcolor{color:#FF0000;}


class="style1 fontcolor">Test twinclass

Font shorthand

font-weight: normal;
font-style: italic;
font-size: 12px;
font-family: arial;

this above rule you can wrile as below

font: normal italic 12px arial;

You must have rule for both the font-size and the font-family.