|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.
by Sir Chivas Sat May 27, 2023 8:32 pm
by H3RO Fri May 26, 2023 1:19 pm
by Niko Fri May 26, 2023 11:53 am
by Sir Chivas Sun May 21, 2023 1:13 am
by Maul Thu May 18, 2023 11:57 pm
by Beyonder Tue May 16, 2023 6:50 pm
by YoshiGM Tue May 16, 2023 4:22 pm
by Lucky Sat May 13, 2023 3:25 pm