Wednesday, 11 September 2013

target child id el by knowing the parent class

target child id el by knowing the parent class

I have a css class that has a couple of children and I know that the child
ellement that I want to target has an id that ends with 'inner-Ct. I don't
want to assign it my unique id because it will be used in many places.
<div class="totalSummary">
<div>
<div id = "form-1406-innerCt"></div> //<---- this is the one I
want to target
...
<div>
</div>
It's there a way to do this using css?

No comments:

Post a Comment