I have a one question that i dont know resolve.
If I have, two different lists ul and ol and i want applicate style at the first element of the first list without use ol tag or js, only i want use css:
<div>
<h1>Title</h1><ul>
<li>element_1</li>
<li>element_2</li>
<li>element_3</li>
<li>element_4</li>
<li>element_5</li>
</ul>
<ol>
<li>element_1</li>
<li>element_2</li>
<li>element_3</li>
<li>element_4</li>
<li>element_5</li>
</ol>
</div>
I test with:
div :has(li):nth-child(1) li {
/* styles */
}
But i cant access to element of this way. Is possible resolve only with css?
Thanks, i cant find nothing to fix it