Answer the question
In order to leave comments, you need to log in
How to use variable inside nth selector?
There are many nth selectors with one value, I want to set it to a variable, for example:
instead of this:
&:nth-child(-n+4) {
}
&:nth-child(-n+@items) {
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question