View Single Post
Old 09-06-2012, 04:28 AM   #1
davikerkrish
Registered User
 
Join Date: Jul 2012
Posts: 111
Set Multiple Classes on an HTML Element

<div class="class-1 class-2 class-3">
</div>

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}
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
davikerkrish is offline   Reply With Quote