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 inputs, labels , selects inside #searchsection:

#searchsection label, #searchsection input, #searchsection select{     color:#f00; } 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -