 <p>Given your image, you can target this with pure CSS:</p> <pre><code>.institution-selector li { /*this is all list items */ } .institution-selector li li { /*this is all second or third level list items */ } .institution-selector li li li { /*this is all third level list items */ } .institution-selector li:last-child { /*this is the last item in a list of items */ } .institution-selector li ul { /*this is a list within a list item */ } </code></pre> <p>etc.</p>