If i have the following CSS:
.contactUsDiv label, input { display:block; }
Does that mean that ALL labels inside contactUsDiv elements will have block display & that ALL inputs inside the BODY will have block display?
OR
Does it mean that ALL labels AND inputs inside contactUsDiv elements will have block display?
Do I need to do this to get the latter to occur…
.contactUsDiv label, .contactUsDiv input { display:block; }
You need the latter to limit them both to
.contactUsDiv. The comma starts a completely new selector.Is the equivalent of:
And
Is the equivalent of:
W3 Specs on this are available here: http://www.w3.org/TR/css3-selectors/#grouping