First name:
<input type="text" name="first_name" value="" maxlength="100" />

I want the "First name" to be a certain font size, so what do I insert into my css code?

1 answer

This was chosen as the best answer


<label for="fname">First name:</label>
<input id="fname" type="text" name="first_name" value="" maxlength="100" />


label {font-size:whatever;}

If you need to set the size of some but not all labels, use a class.

Answered over 8 years ago by Richard Grevers
  • Lol, I just remembered that it said that in a book the second that it said you posted this. lol. Thx. canyonchase1 over 8 years ago
  • And of course you get the accessability benefits of label - click on it and get focus on the input. Richard Grevers over 8 years ago