Yatrix Yatrix - 17 days ago 5
CSS Question

Multiple names in CSS, including elements in declaration: syntax questions

I came across these on the new job I just started. I don't have web experience so my knowledge is pretty basic. I'm not sure what the below do. I've never come across or used syntax like this before. I was able to find that the

#TAFeedback
will apply to any element with that id, but that's all I could dig up.

.howmanyinstate .ctrlHolder ol
{
width:90%;
float:right;
}

#TAFeedBack div.ctrlHolder table
{
background:none !important;
}

Answer
.howmanyinstate .ctrlHolder ol 

applies the style to all ordered lists ol in an element that has a class ctrlHolder and that element is a child of an element with class howmanyinstate

For example:

<div class="howmanyinstate">
    <div class="ctrlHolder">
        <ol>
           ...
        </ol>
    </div>
</div>
Comments