CSS Selector not working on elements within a div
- by stevebot
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?