Answer the question
In order to leave comments, you need to log in
How to select an element by class in CSS?
There is an element: <span class='next prev'></span>
How in CSS can I select span by class next and prev?
This is for some moments when one class cannot be, but the other remains - to prescribe for each case.
Answer the question
In order to leave comments, you need to log in
.next, .prev {...} // или .next или .prev или оба
.next.prev { ... } // только оба
.next, .next.prev { ... } // .next или оба. Если будет только .prev - не сработает
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question