Style for form fieldset : fieldset « Form « HTML / CSS






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>

   
  








Related examples in the same category

1.'fieldset' groups 'form' elements by drawing a rectangle
2.Fieldset and Legend Example
3.Form field set with legend
4.Use fieldset to create a set of form controls
5.Fieldsets and labels
6.Set border for fieldset
7.borderless fieldsets
8.Set fieldset border to dashed style
9.Organizing Elements With fieldset and legend Elements
10.noframes for frameset
11.utf-8 charset page
12.nested fieldset background-color: #efefef;
13.fieldset padding: 1em;
14.fieldset margin: 2em 0;
15.fieldset border: 1px solid #ccc;
16.fieldset background-color: #dfdfdf;
17.fieldset margin-bottom: 1em;
18.fieldset border: 1px solid #888; border-right: 1px solid #666; border-bottom: 1px solid #666;
19.fieldset border: 3px solid rgb(234, 234, 234);
20.fieldset background: rgb(244, 244, 244);
21.Fieldset and Legend
22.Fieldset Background
23.Fieldset Alternating
24.fieldset font-size:12px; padding:10px; width:250px;text-align:right;
25.fieldset font-size:12px; padding:10px; width:250px; line-height:1.8;
26.Using legend for fieldset
27.>Organizing Elements With fieldset and legend Elements
28.The fieldset element
29.Removing the border from fieldsets
30.Nested Fieldset Example
31.fieldset border: 1px solid royalblue;
32.Element Subgroups