<ul>
<li class="bla">aaa</li>
<li class="my_li">sss</li>
<li class="my_li">ddd</li>
<li class="my_li">fff</li>
</ul>
css:
.my_li:first-child{
color: #090;
}
Issue with CSS behavior when targeting the first-child element in a list using a specific class. Whenever the first li tag does not have the class "bla," but instead has the class "my_li," the text color is changed to green. Seeking clarification on this unexpected outcome.