H
H
helga1123582019-12-19 00:07:23
css
helga112358, 2019-12-19 00:07:23

What is the correct way to write a selector with two non-nested classes?

how to write a selector using css or sass that will refer to a block that has both classes necessarily? You can’t write through a space, because there is no nesting. Everything is formed dynamically and I don’t know how many additional blocks there will be, I know that there are only 2 classes by which you need to define a block, i.e. div+div won't work. Maybe I'm missing something and the answer is obvious. Thank you for your help)

<div class="first"></div>
<div class="first second"></div>
<div class="second"></div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2019-12-19
@helga112358

'.first.second'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question