Tuesday, July 23, 2019

CSS effected if both name are present

example:
<div class="content main">I want this div</div>
<div class="content">I don't care about this one</div>
<div class="main">I don't want this</div>
Just concatenate these two classes (without space):
.content.main{
bla:bla;
}

read more:
https://www.w3.org/TR/CSS2/selector.html#class-html

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.