you could use first-of-type or nth-of-type(1) or nth-child(1 of .red)
.red { color: green; } /* .red:nth-of-type(1) */ /* .red:first-of-type */ .home :nth-child(1 of .red) { color: red; } <div class="home"> <span>blah</span> <p>not red</p> <p class="red">first</p> <p class="red">second</p> <p class="red">third</p> <p class="red">fourth</p> </div>