+ 14
can we specify more than one CSS class for any HTML element????
10 Respuestas
+ 17
Sure.
I.e
<div class = "one two three fourclass">
</div>
+ 13
Yes, you can specify more than one CSS class for any HTML element, below I will specify one for you to understand.
<!--CSS File-->
.photo {
margin: 10px;
padding: 5px;
background: #FFF;
float: right;
border: 1px solid #E0E0E0;
}
.left {
float: left;
margin-right: 20px;
}
and this is the html tag below:
<img src="images/lime.jpg" class="photo left" alt="Lime" width="250" height="188" />
+ 13
tankieww all
+ 4
we can add more than one classes to any html element by separating them with a space.
for instance ->
<p class="text-center colored">I am centrally aligned and colored</p>
here , in the above example , I hve used two classes, first is "text-center" and second is "colored"...
+ 4
We can infer that id for any element can only be one and no. for classes an element can use is Infinite
+ 1
As many as you want
+ 1
we can add as many we want...
+ 1
yes you can specify multiple classes in one html element and this feature is one of the best for web developers
+ 1
yes we can ....i will write a web programme soon..may it will help you
0
yes