Home › Forums › Back End › Give the first picture a different class › Re: Give the first picture a different class
December 29, 2011 at 10:22 am
#93616
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.