This is something that I have not had to deal with before.
To serve an outdated system, I cannot directly edit HTML to add a CSS class to the image tag.
But is it possible to use the style of the alt tag for styling?
<img class="thumbnail" src="/H14547_front_anthrazit.jpg" alt="H14547 front anthrazit">
I want to use the text "front" inside the alt attribute for the image style:
img[alt="front"] { padding: .2rem }
Can I use the IMG Alt attribute for styling? And how exactly?
source
share