Answer the question
In order to leave comments, you need to log in
LESS, :before and background-position pseudo-elements?
Hello! Please tell me, I can not set background-position to the sprite.
The point is that the .min-icons class is given a :before pseudo-element with an image. The same element, in addition to this class, has the .seo class. The second class is usually given a backgroun-position.
But I don’t know how this is done in LESS.
Answer the question
In order to leave comments, you need to log in
.min-icons::before {
background-image: url(/images/sprite.png);
}
.min-icons.seo::before {
background-position: -10px 0;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question