I noticed that only the first element should be formatted that way: ul >li : firs-chlid{ background: red; }