CSS CSS Selectors Going Further with Attribute Selectors and Pseudo-Classes :first-child and :last-child Challenge

Angus Eliott
Angus Eliott
3,793 Points

whats wrong?

whats wrong with this code please?

li:.main-nav ~ first-child {
  border: none;
  border-radius: 5px, 0, 0, 5px;
}

1 Answer

Erik Nuber
Erik Nuber
20,628 Points
.main-nav li:first-child {
    border: none;
    border-radius: 5px 0 0 5px;
}

you are close, just need to reverse and get rid of the hypen