Home › Forums › Back End › Give the first picture a different class › Re: Give the first picture a different class
December 29, 2011 at 9:41 am
#93610
Mottie
Member
Well… I tried this, and it worked, but I don’t think it’s the best solution because the markup could change and the image may not be the 5th child:
.home-post-wrap img:nth-child(5) { }
I think the best solution, since you’re using jQuery, would be to use script
Then just add whatever css using the “first-image” class.