For the following image html:
<img src="/some.png" alt="something" />
In CSS, you can target an img
element with a specific alt
value:
img[alt="something"] {
width: 5em;
}
How can I select all img
elements with text in the alt
attribute? I was thinking of something like:
img[alt="*"]
but that doesn't seem to work. Any ideas?