Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   HTML / DHTML (http://siteownersforums.com/forumdisplay.php?f=7)
-   -   Set Multiple Classes on an HTML Element (http://siteownersforums.com/showthread.php?t=59729)

davikerkrish 09-06-2012 04:28 AM

Set Multiple Classes on an HTML Element
 



with all class names inside the same set of double quotes with a space between each. The CSS specificity is controlled by the order of the classes in your CSS file. If your CSS has:

class-2 {color: blue}
class-3 {color: green}
class-1 {color: red}

eswari 10-15-2012 04:23 AM

You can try like this, for using multiple classes on one HTML element,

First css file:

.title {
color: black;
border: 1px solid silver;
...
}

Second css file:

.title {
color: red;
}

amitmax 11-27-2012 01:06 AM

Thanks for your suggestions but I would like share here this link as well:

http://webdesign.about.com/od/css/qt...smulticlas.htm

I hope it will give some more clear information.

aegisisc 12-05-2012 06:28 AM

Well, see, the problem is that I want to assign two different classes on a table cell scale, so assigning one style to the table, one to the row, and one to the cell won't work because that wont give me fine enough precision to make the changes I want to make.

andrewhoward123 12-11-2012 11:26 PM

I didn't know this that we can create multiple classes in an HTML element..


All times are GMT -7. The time now is 06:34 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.