CSS Selector not working on elements within a div
Posted
by
stevebot
on Stack Overflow
See other posts from Stack Overflow
or by stevebot
Published on 2010-12-27T20:40:51Z
Indexed on
2010/12/28
8:54 UTC
Read the original article
Hit count: 466
Hi,
I have the following HTML structure:
<div class="formFields">
<label> Field 1: </label>
<input type="text" value="" name="field1" />
</div>
And my CSS selectors are as follows:
#formFields {clear:both;}
#formFields label {font-weight:bold;}
The clear:both;
is being applied to the div, but the font-weight:bold;
is not being applied to the labels. How would I apply this font-weight
to the labels?
© Stack Overflow or respective owner