Home › Forums › JavaScript › jQuery :nth-child › Re: jQuery :nth-child
April 3, 2010 at 4:59 pm
#73402
andiszek
Participant
well, i found out hot how to control the styles for every nth-child via the external file and am going to post it, in case anybody else is interested:
add this to the HTML page:
$(".wrappingDiv div:nth-child(3n+3)").css();
and then target it in the external CSS file:
.wrappingDiv div:nth-child(3n+3) {add-your-styles;}
cool stuff! thanks again for the tutorial!