I have a bunch of DIV elements in my HTML, some of which have an attribute of the "rowsLayout" class. Some of these Layout DIV lines can be nested. I want to define a CSS selector that is only for the deepest DIVs in these sockets. That is, I do not want any of the divs rowsLayout to contain any other div files rowLayout.
<div id="a" class="rowsLayout"> <div id="b" class="rowsLayout" /> <div id="c" class="rowsLayout"> <div id="d" class="rowsLayout" /> </div> </div> <div id="e" class="rowsLayout" />
In this structure, I want a selector that will target b, d and e.
Can this be done?
css css-selectors
Matt thalman
source share