css select child of parent with class code example Example: child css p:nth-child(2) { background: red; }