Forums

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

Home Forums JavaScript jQuery :nth-child Re: jQuery :nth-child

#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!