Is there a way to specifically target the nested li elements in my css selector?
li:first-child {
background-color: rgb(236, 236, 236);
list-style-type: none;
margin-bottom: 3px;
padding: 8px;
}
<ul>
<li>This one should be targeted</li>
<li></li>
<li>
<ul>
<li>But not this nested one</li>
<li></li>
<li></li>
</ul>
</li>
</ul>