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
label
inside#searchsection
- any
input
- any
select
to apply input
s, label
s , select
s inside #searchsection
:
#searchsection label, #searchsection input, #searchsection select{ color:#f00; }
Comments
Post a Comment