Home » General, Programming / Coding

How to apply multiple css styles on single element

22 January 2010 180 views No Comment

If you like to apply multiple styles on the single element, all you have to do is separate the style names by a space.

Example:

Lets say you have three classes

.a {..}
.b{..}
.c{..}

To apply them on a single div tag:

<div>
…..
</div>

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.