fieldset border: 1px solid #888; border-right: 1px solid #666; border-bottom: 1px solid #666; : fieldset « Form « HTML / CSS






fieldset border: 1px solid #888; border-right: 1px solid #666; border-bottom: 1px solid #666;

 
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
<style type="text/css">


h2 {
  text-transform: capitalize;
}

form {
}

.akey {
  }

label {
  margin-top: .33em;
  display: block;
}

input {
  display: block;
  width: 250px;
}

input.submit {
  width: 5em;
  margin-left: 200px;
}

textarea {
  width: 250px;
  height: 75px;
}

html,body {
  margin:0;
  padding:0;
  }
body {
  font: 76% arial,sans-serif;
  }
p, h2, h3 {

  }

form {
margin: 1em 0;;
 padding: 0; 


}  

fieldset {
  margin-bottom: 1em;
  border: 1px solid #888;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
}

legend {
  font-weight: bold;
  border: 1px solid #888;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
  padding: .5em;
  background-color: #CCC;
}

a {
  display: block;
  color: #006;
  padding: 10px;
  }
div#header{
  position:relative;
  background-image: url(rocketship.gif);
  background-repeat: no-repeat;
  background-position: 10px 0px;
  
  }
div#header h1{
  height: 80px;
  line-height: 80px;
  margin: 0;
  padding-left: 27%;

  color: #333;
  }


div#header h1 img {
  vertical-align: middle; 
}

div#content p  {
  line-height:1.5;
  }
div#extra{
  color: #333;
  background-image: url(fade.jpg);
  background-repeat: repeat-x;
  

  }
  
div#extra h2, div#extra p {
  margin-left: 10px;
  margin-right: 10px;
}
  
div#footer{
  background: #333;
  color: #FFF;
  text-align: center;
  }
div#footer p{
  margin:0;
  padding:5px 10px}
div#footer a {
  display:inline;
  padding:0;
  color: #C6D5FD;
  }

div#wrapper{
  float:left;
  width:100%;
  }
div#content{
  margin-right: 33%;
  margin-left: 27%;
  margin-bottom: 2em;
  }
div#navigation{
  float:left;
  width:25%;
  margin-left:-25%;
  }
div#extra{
  float:left;
  width:25%;
  margin-left:-100%;
  }
div#footer{ 
  clear:left;
  width:100%;

  }




</style>
</head>
<body>
<div id="container">
  <div id="wrapper">
    <div id="content">
      <h2>Contact Form</h2>
      <p>Please fill out our form below in order to contact me. </p>
      <form id="form1" name="form1" method="post" action="/">
        <fieldset>
        <legend>Contact Information</legend>
        <label for="fmtitle" accesskey="i">T<span class="akey">i</span>tle</label>
        <select name="fmtitle" id="fmtitle">
          <option value="ms">Ms.</option>
          <option value="mrs">Mrs.</option>
          <option value="miss">Miss</option>
          <option value="mr">Mr.</option>
        </select>
        <label for="fmname" accesskey="n"><span class="akey">N</span>ame</label>
        <input type="text" name="fmname" id="fmname" />
        <label for="fmemail" accesskey="e"><span class="akey">E</span>mail</label>
        <input type="text"  name="fmemail" id="fmemail" />
        </fieldset>
        <fieldset>
        <legend>Your Message</legend>
        <label for="fmstate" accesskey="y">Subject</label>
        <input type="text" name="fmcountry" id="fmcountry" />
        <label for="fmmsg"><span class="akey">M</span>essage</label>
        <textarea name="fmmsg" accesskey="m" id="fmmsg" rows="5" cols="14"></textarea>
        </fieldset>
        <input type="submit" name="submit" value="send" class="submit" />
      </form>
    </div>
  </div>
</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.Style for form fieldset
5.Use fieldset to create a set of form controls
6.Fieldsets and labels
7.Set border for fieldset
8.borderless fieldsets
9.Set fieldset border to dashed style
10.Organizing Elements With fieldset and legend Elements
11.noframes for frameset
12.utf-8 charset page
13.nested fieldset background-color: #efefef;
14.fieldset padding: 1em;
15.fieldset margin: 2em 0;
16.fieldset border: 1px solid #ccc;
17.fieldset background-color: #dfdfdf;
18.fieldset margin-bottom: 1em;
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