Supoose you have something like
<div class="base"> <div> ... <div class="ok"> <div> ... <div class="ok"></div> ... </div> </div> ... </div> </div> Here I've shown just a couple of DIVs, but it can be any level deep (note the ...)
So the question is: How can I style the first element with the class okwithout knowing how deep it is nested ?
Here is a DEMO in which you can see I style all the DIVs with the class ok