Form with border : form « Form « HTML / CSS






Form with border

  

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>*KHAKI*</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style rel="stylesheet" type="text/css">

#sidebar {
  float: left;
  width: 180px;
  margin: 0 10px 0 0;
  padding: 10px;
  border-right: 1px solid #eee;
  color: #666;
}

#sidebar a {
  color: #333;
  background: inherit;
}

#sidebar a:hover {
  color: #B29B35;
  background: inherit;
}

#sidebar {
  float: left;
  width: 180px;
  margin: 0 10px 0 0;
  padding: 10px;
  border-right: 1px solid #eee;
  color: #666;
}

#sidebar a {
  color: #333;
  background: inherit;
}

#sidebar a:hover {
  color: #B29B35;
  background: inherit;
}


</style>

</head>
<body>

  <div id="sidebar">
    <h2>Resources</h2>
    <div class="navlist">
      <ul>
        <li><a href="">A</a></li>
        <li><a href="">TODC</a></li>
        <li><a href="">OWD</a></li>
        <li><a href="">E</a></li>
        <li><a href="">F</a></li>
        <li><a href="">B</a></li>
        <li><a href="">C</a></li>
      </ul>
    </div>
    <form action="" method="post">
      <fieldset>
      <legend>Search</legend>
      <div> <span>
        <label for="txtsearch"> Find: <img src="img/search.gif" alt="search" /></label>
        </span> <span>
        <input type="text" value="demo only" name="txtsearch" title="Text input: search" id="txtsearch" size="20" />
        </span> </div>
      </fieldset>
    </form>
    <h2>Sub Menu</h2>
    <div class="navlist">
      <ul>
        <li><a href="">Link One</a></li>
        <li><a href="">Link Two</a></li>
        <li><a href="">Link Three</a></li>
        <li><a href="">Link Four</a></li>
      </ul>
    </div>
    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
  </div>

</body>
</html>

   
    
  








Related examples in the same category

1.Introducing Form Design
2.form starts the form, gives the method of sending information and the location of form scripts
3.Add form controls to paragraph
4.Use DL, DT to layout the form controls
5.A login form with submit button
6.simple form with label, text field and submit button
7.Set margin, padding and border for form
8.Use DIV to wrap form control
9.Wrap form controls in a DIV and set style to float left and padding
10.Use table to layout form controls
11.styleless order form
12.Use UL and LI to layout form controls
13.Define style based on form id
14.Styling text in form controls
15.Disable a form control
16.Align the form controls
17.Registration Form
18.Layout form controls with table
19.Form layout
20.Layout form with CSS
21.Wizard form
22.Form for registration
23.form width: 75%
24.form margin: 3em auto
25.Add BR to table cell to layout the form controls
26.Use table to align the form controls
27.Table and Form Example
28.form margin:10px;
29.form padding: 0 5px;
30.form background: #F5F5F5;
31.form background: #F8F8F8;
32.form padding-right: 15px;
33.form padding-left: 15px;
34.form margin: 15px;
35.form padding: 15px 5px;
36.form border: 1px solid #EFEFEF;
37.Adding border to form
38.Error Fields
39.Error Fields 3
40.Error Fields 2
41.CSS Forms: Focus and Required Fields
42.CSS styled form elements
43.Spreadsheet form
44.A simple search form
45.Register with us form
46.Submit form
47.Reset and Submit Example