I am encountering an issue with my form where the spacing between the two lines of the <label>
element is too large and I am unable to adjust the line-height.
For reference, I have applied the same CSS styles to a <label>
and a <p>
. Surprisingly, the <p>
adjusts properly, but the <label>
remains unchanged.
CODE:
form label,
form p
{
font-weight:bold;
line-height:.7em;
}
<form style="width:200px;">
<fieldset>
<label for="textarea">In ten or fewer words, explain American history</label>
<p>In ten or fewer words, explain American history</p>
<textarea name="textarea" rows="5" ></textarea>
</fieldset>
</form>