<div class="wrapper"> <script></script> <script></script> <ul class="cars"> <li class="headline">My Cars</li> <li>Ferrari</li> <li>Hummer</li> </ul> <noscript></noscript> <script></script> <script></script> <ul class="cars"> <li class="headline">My Cars</li> <li>Volvo</li> <li>Caddilac</li> </ul> <noscript></noscript> <script></script> <script></script> <ul> etc.... </div> Question: How can I hide ALL the <li class="headline">My Cars</li> elements, except the first one, using only CSS?
I asked a slightly similiar question yesterday which the answer for worked fine, but the scenario has changed which caused further problems. I'm in a position where I have only control over the CSS so please do not suggest using JavaScript or modifying the HTML.
It's those damned <script> and <noscript> elements which causes the solution from yesterday to totally fail.
For browser compatibility I would appreciate if the solution did NOT use CSS3.
Any ideas?
<script>tags there? I know, I know, you said "don't suggest modifying the HTML", but having all those<script>s is representative of poor design.<noscript>element for the first set of elements?