Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Give the first picture a different class Re: Give the first picture a different class

#93616
farzadina
Participant

@Mottie, Yea, I tried the first solution and that worked, but as you said, that may change in some posts, for example when I put a video at the first of my post.
I used jQuery solution and that worked great, Thanks!


@cnwtx
, I haven’t

tag around my images, so I changed that code to img:first-of-type and that worked in most of my posts, but in some of them I saw

tag around my images and there the solution doesn’t worked.


@noahgelman
, Thank you so much for the helps.