Thursday, 15 September 2011

html - How to css select all divs to levels down from div with ID -



html - How to css select all divs to levels down from div with ID -

i think i'm spacing 1 out here's html structure. i'm trying select 5 divs nested 2 deep id'ed div in dynamically generated page.

<div id="mydiv"> <div class="class1"> <div class="myclass">stuff</div> <div class="myclass">stuff</div> <div class="myclass">stuff</div> <div class="myclass">stuff</div> <div class="myclass">stuff</div> </div> </div>

i need adjust css of "myclass" divs using css selector , custom css overriding dynamically generated jquery mobile css class.

thanks!

you should able overwrite styles selector:

class="lang-css prettyprint-override">#mydiv > .class1 > .myclass { ... }

html css css3

No comments:

Post a Comment