Justin Walker

WEB DEVELOPER, CAT ENTHUSIAST, FAN OF VINTAGE COCKTAILS, TRAVEL, AND BREAKFAST BURRITOS

CSS Child and Sibling Selectors

I’m working on a website right now and I was trying to figure out how to target a particular paragraph tag in a set of similar divs. I didn’t want to have to go and add classes to each paragraph tag, so I searched for CSS child selectors.  I found this great post on CSS Tricks that explains how it works:

 

http://css-tricks.com/5514-child-and-sibling-selectors/


Load Comments