IT WORKS, IT REALLY DOES!!!!!!!!!!!!!!!
For as long as I have been working with CSS and HTML (3+ years) I have been extremely frustrated that I couldn’t apply more than one CSS class to an element. You know what, I WAS WRONG!!! I have wasted countless hour duplicating classes in CSS. NEVER AGAIN!! The code below works.
CSS:
[code]
.redText {
color: red;
}
.blueBox {
background: blue;
}
XHTML:
[code]
<p class=”redText”>Filler</p>
<p class=”blueBox”>Filler</p>
<p class=”redText blueBox”>Filler</p>
The bottom paragraph will contain a paragraph with red text and a blue background!
I realize this might not be big news to a lot of you, but this is something I have not seen an example for in my 3 years of searching the web for CSS / HTML problems. Only by pulling someone elses code apart a few days ago did I see this being used.
I THINK THIS POST SHOULD BE A STICKY!! ?