Possible duplicate:Is it possible to target an element using CSS only if there are 2 classes?CSS selector that applies to elements with two classes
Is there a way to apply CSS style to an element only if 2 classes are applied to it?
For example, apply my custom styles to this:
<div class="one two">Text</div>
But not to these:
<div class="one">Text</div> <div class="two">Text</div>
Of course:
.one.two { border: 1px red solid }
Try using css .one.two in the selector
.one.two
Source: https://habr.com/ru/post/921680/More articles:Cool styling for dropdown in asp.net? - cssHow to use wildcards with messenger - pythonError IE Java script Unable to get property value '0': - jqueryHow to install java version in windows git bash? - windowsChoose between list or dictionary - collectionsGiven a sorted integer array, how can binary search trees be generated? - algorithmPrint to clipboard or reuse code - cHow to accurately determine the maximum scroll position of a page? - javascripturllib2 - ability to validate pass certificate - pythonScala actor inefficiency issue - javaAll Articles