why we use first child

Solutions on MaxInterview for why we use first child by the best coders in the world

showing results for - "why we use first child"
Michele
11 Sep 2016
1<style> 
2    .container:first-child{
3     background-color: blueviolet;
4    }
5</style>
6<div  class="container">
7        <ul id="nav">
8            <li>Home </li>
9            <li>About</li>
10            <li>Servicess</li>
11            <li>More About Us</li>
12            <li>Contact Us</li>
13        </ul>
14    </div>