deepesh kumar deepesh kumar - 5 months ago 8
CSS Question

How to add to css class in a single html tag?

I have two different css classes (say class1 and class2). how can I add this two classes to a single html tag (say input box).

Answer

Try this Need space between two classes.

<input type="button" class="class1 class2" />

CSS

.class1{
// class1 css
}
.class2{
//class2 css
}