I have an unordered list <ul>
which can have 15,30,45,60,75,90,... and so on elements in it. I want to hide only last element if the list has 15 / 45 / 75 / 105 and so on. I want to do it with CSS only, no JQuery etc.
I tried my level best to accomplish it and found this article Can CSS detect the number of children an element has? so far but could not get to work it.
How can I get this job done?