CSS Target Specific Child

Glenn Glenn's Blog 0 Comments

First lets look at how jQuery Does it 🙂 With jQuery it’s easy to target a specific first child with jQuery First:- Or if it’s not the first then the <strong>:nth-child() Selector</strong> like so:- This selects the second ‘li’ in the ‘ul’ and appends a span Or a combination of selectors such as ‘first’ and ‘:nth-child’ This finds the second …