How to set multiple class in CSS

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
deva
Forum Newbie
Posts: 7
Joined: Tue Jun 12, 2007 3:18 am

How to set multiple class in CSS

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Again, what does your favorite search engine say?
User avatar
Gente
Forum Contributor
Posts: 252
Joined: Wed Jun 13, 2007 9:43 am
Location: Ukraine, Kharkov
Contact:

Post by Gente »

Hope it says that it's nonsense...
Post Reply