html - Does this selector require the child to be a part of the named element first (i.e. hierarchical)? -
consider following css:
#searchsection label, input, select does only apply if label, input, , select element inside #searchsection?
something tells me it's more css in end:
#searchsection label { } input { } select { }
no,
this means
- any
labelinside#searchsection - any
input - any
select
to apply inputs, labels , selects inside #searchsection:
#searchsection label, #searchsection input, #searchsection select{ color:#f00; }
Comments
Post a Comment