Home › Forums › Back End › Give the first picture a different class › Re: Give the first picture a different class
December 29, 2011 at 12:05 pm
#93599
Participant
I tried img:first-of-type, p:first-of-type
, that give the first image, first
tag and the first images in
tags, a different class.
I used that jQuery method and that work great. It is good to use a pure CSS method, but if not, there is no problem.