Is there any option to set multiple class on a single element. For example, I have two style sets defined as <style> .style1{text-decoration: none;} .style2{color: red;} </style> PHP: I tried to set both the style set for an element using class attribute as below. But it does not work. Is there any other option. <a href="" class="style1,style2"> PHP: Thanks, deva
I'm pretty sure it's well supported, the only problem being the multiple class selectors in your stylesheet and IE, for ex: .style1.style2 { } I think only the last class gets chosen. http://css-discuss.incutio.com/?page=MultipleClasses