HTML CSS examples for CSS Selector:not
combine the css selector using ":not"
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul.cmpro-accordion>li.cid-2, ul.cmpro-accordion>li.cid-61 { display:block } ul>li:not(.cid-2), ul>li:not(.cid-61) { display:none; } </style> <!--from ww w . j a v a2s . c o m--> </head> <body> <ul class="cmpro-accordion"> <li>Lorem ips</li> <li class="cid-2">Lorem ips</li> <li class="cid-61">Lorem ips</li> <li>Lorem ips</li> <li>Lorem ips</li> </ul> </body> </html>