I'm playing around with nth-child selector.
Say I have grid with rows of 4 elements each and my first and last element have classes of ui-first-child and ui-last-child respectively:
<ul>
 <li.ui-first-child>
 <li>
 <li>
 <li.ui-last-child>
</ul>
What I would like to do is select the first element ONLY if there are more than 4 elements using pure CSS.
So if there are five elements like this:
 <el.first><el><el><el>
 <el.last>
I want to override bottom-corners on the first element.
Question:
Is it possible with pure CSS/nth-child/first/last class to select the first element on a group of elements with number of elements > 4?
Thanks!
 
    