XF 2.2 How to target embedded images with specific file extension for styling

Aivaras

Active member
I want to apply a border around PNG images embedded in posts via CSS. Just PNGs, not other image file types.

I tried adding the file type selector to both img and .bbImage, like so: img[src$=".png"] and .bbImage[src$=".png"], but neither worked.

Do you have any suggestions how this can be achieved (if it can be at all)?
 
Top