17 March 2014

How to add 2 classes to 1 div?

PROBLEM:
You have one div and you want use 2 classes for whatever reasons .
What to do ?

SOLUTION:
simply add space between classes name
<div class="class1 class2">CONTENT</div>

Polite reminder:
class2 will overwrite class1 properties.

No comments:

Post a Comment