Home › Forums › CSS › [Solved] Last-child › Reply To: [Solved] Last-child
November 4, 2015 at 11:36 pm
#210572
TheDoc
Member
These types of selectors can be really tricky to get, but you did the right thing by opening up a JSFiddle (I prefer Codepen :D ). What you’re looking for is something like this:
li:last-child > .asset {
color: green;
}
That will make the immediate .asset
child of li:last-child
to be green, as seen here: http://codepen.io/graygilmore/pen/e816f974913df05472e0ccb445957ced