Skip to content
All Challenges
#50

First-Child Selector

Medium
Category: Selectors

Remove top border on only the :first-child element of .list-item.

Target HTML in preview:
<div class="list-item">1</div><div class="list-item">2</div>
Verification Criteria:
Target :first-child
Set border-top: none
styles.css
Live Evaluation
Loading...
|
Live Browser Output
Sandboxed Preview