I got a problem for you to solve, as you know.
I ripped off all my hair trying to figure out why the heck last-child isn’t working.
I tried to remove border-right with last-child but for some reasons, it didn’t work out.
Here’s is the link
I got a problem for you to solve, as you know. I ripped off
Share
Your selector is
#countdown .num:last-child.Your HTML is
Think: is
.numthe last child of its parent? Answer: no.Your selector should be more like
#countdown > li:last-of-type .num, selecting.numinside the lastliin#countdown.Note that in this case
last-of-typemust be used rather thanlast-childbecause you’ve got that<div class="clear"></div>, which is invalid HTML (you can’t have adivdirectly inside aul).