...

View Full Version : Option to set multiple class



deva.vvel
07-12-2007, 05:36 AM
Is there any option to set multiple class on a single element. For example, I have two style sets defined as

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

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.

Code:
<a href="" class="style1,style2">

_Aerospace_Eng_
07-12-2007, 05:43 AM
You are close

<a href="" class="style1 style2">

deva.vvel
07-13-2007, 05:20 AM
Thanks Aerospace_Eng.. that helped me a lot..

twodayslate
07-13-2007, 06:43 AM
http://cssplay.co.uk/menu/class



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum