Style for form fieldset : fieldset : Form Style HTML CSS TUTORIALS


HTML CSS TUTORIALS » Form Style » fieldset »

 

Style for form fieldset


 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Forms</title>
  <style type="text/css" media="screen">
  
  #divID #thisform {
      font-family: Georgia, serif;
      font-size: 12px;
      color: #999;
      }
  
  #divID #thisform label {
     font-family: Verdana, sans-serif;
      font-weight: bold;
      color: #660000;
      }
  
  #divID #thisform fieldset {
    border: 1px solid #ccc;
    padding: 0 20px;
    }
  </style>
</head>
<body>

<div id="divID">
<form action="/path/to/script" id="thisform" method="post">
  <fieldset>
    <legend>Sign In</legend>
    <p><label for="name" accesskey="9" >Name:</label><br />
    <input type="text" id="name" name="name" tabindex="1" /></p>
    <p><label for="email">Email:</label><br />
    <input type="text" id="email" name="email" tabindex="2" /></p>
    <p><input type="checkbox" id="remember" name="remember" tabindex="3" /> 
    <label for="remember">Remember this info?</label></p>
    <p><input type="submit" value="submit" tabindex="4" /></p>
  </fieldset>
</form>
</div>

</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Form Style
» fieldset