Answers for "why we use first child"

CSS
0

why we use first child

<style> 
    .container:first-child{
     background-color: blueviolet;
    }
</style>
<div  class="container">
        <ul id="nav">
            <li>Home </li>
            <li>About</li>
            <li>Servicess</li>
            <li>More About Us</li>
            <li>Contact Us</li>
        </ul>
    </div>
Posted by: Guest on September-10-2021

Browse Popular Code Answers by Language