Answer the question
In order to leave comments, you need to log in
How to set class for img tag by defining image extension in Less?
Tell me how to set the class for the img tag by defining the image extension?
More specifically, I need to set the style for the pictures
<img class="responsive-image" src="image/kartinka.svg">
Answer the question
In order to leave comments, you need to log in
You will not put down a class through less. And this is how you can style it depending on the format:
img[src$="svg"]{
//стили для svg
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question