copyright © CSSPG, lud February 28 1999


 for practical use of CSS

CSS and Form Elements

this document is located at...
<URI:http://css.nu/examples/forms-css.html>

* Style within a <FORM> *

This example is included in the HTML 4.0 Recommendation. The CSS rule (as suggested in ciwas), is:

  DIV {color: navy;
	font-size: 14pt;
	font-weight: 700;
	    } 
The HTML is:
				 
   <FORM action="http://somesite.com/prog/adduser" method="post">
      <DIV>
      <LABEL for="firstname">First name: </LABEL>
                <INPUT type="text" id="firstname"><BR>
      <LABEL for="lastname">Last name: </LABEL>
                <INPUT type="text" id="lastname"><BR>
      <LABEL for="email">email: 
                <INPUT type="text" id="email"><BR>
      <INPUT type="radio" name="sex" value="Male"> Male<BR>
      <INPUT type="radio" name="sex" value="Female"> Female<BR>
      <INPUT type="submit" value="Send"> <INPUT type="reset">
      </DIV>
   </FORM>
	 
---------------------------------------------------------------

This is the result:




Male
Female