Page 1 of 1

How to set multiple class in CSS

Posted: Mon Jul 16, 2007 6:50 am
by deva
Hi,

I need to set multiple class for a single element.. I used the below style, but it does not work.. can anyone help me..

Code: Select all

<style>
.style1{text-decoration: none;}
.style2{color: red;}
</style>

<a href="" class="style1, style2">
thanks in advance.

Posted: Mon Jul 16, 2007 6:52 am
by feyd
Again, what does your favorite search engine say?

Posted: Mon Jul 16, 2007 8:41 am
by Gente
Hope it says that it's nonsense...