|Advanced CSS - Selecting links by extension|
DescriptionI came to bring you a nice tip here, which is to select a link through its extension, what do you mean?
Every link to an image for example has its extension, doesn't it?
CSSLet's say you want to style all the links that lead to a png image. Here's how it's done:
You need to reply to the topic in order to see the code resources
For a jpg image we use:
Simple isn't it? I don't know how the acceptance between browsers is, but here on Mozilla it works fine..
|This resource belong to this community unless differently stated.|
No reproduction possible without our agreement, in accordance with article L122-1 of the CPI.