I have a question related to lists and the use of nth-child.
I have two lists targetted by a selector, and am trying to access individual elements.
In my Fiddle exemple, I expected the 5th item to be yellow not cyan.
When a selector targets multiple lists, are they not combined into one list?
ul li:nth-child(5){
background-color: yellow;
}
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
<ul>
<li>a</li>
<li>b</li>
</ul>
https://jsfiddle.net/1q66hwgg/
Thanks! S.