how to give two css class to the one element ?
can this possible ?? if possible then explain with example...
Css more than one class selector
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal GilbileRank #268 · 9.4K reputationPosted Mar 14, 2013, 8:36 PM EDT
Yes you can provide two clases to one element.
.classs1{
//formating code
}
.class2
{
/formatting code
}
With Regards,
Vishal Gilbile.
Manoj RajputRank #2,678 · 520 reputationPosted Mar 21, 2013, 5:47 AM EDT
You can use this code....
Example :1
Example :2