form background: #F8F8F8; : form « Form « HTML / CSS






form background: #F8F8F8;

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />    

<style type='text/css'>
/* --------------------------------------------------

   AUTHOR           :    Erwin Aligam
   WEBSITE          :   http://www.styleshout.com/
   TEMPLATE NAME    :   EliteCircle
   TEMPLATE CODE    :   S-0012
   VERSION          :   1.2
   LAST MODIFIED    :    January 19, 2010

----------------------------------------------------- */
 
/* --------------------------------------------------
   HTML ELEMENTS
----------------------------------------------------- */

/* top elements */
* { padding: 0; margin: 0; }

body {
  margin: 0;   padding: 0;
  font: normal .70em/1.7em Verdana, 'Trebuchet MS', Tahoma, sans-serif;
  color: #555;
  text-align: center;
  background: #180700;  
}

/* links */
a {
  color:#CB4721; 
  background-color: inherit;
  text-decoration: none;  
}
a:hover {
  background-color: inherit;
  text-decoration: underline;
}

/* headers */
h1, h2, h3 {
  font: normal 1em Georgia, "Times New Roman", Times, serif;
  color:#111;
  letter-spacing:-1px;
}
h1 { font-size: 3em; }
h2 { font-size: 2.5em; color:#74743D; }
h3 { font-size: 2em; color:#C34E23; letter-spacing: 0px;}

p, h1, h2, h3 {
  margin: 10px 15px;
  padding: 0;
}

ul, ol {
  margin: 10px 30px;
  padding: 0 15px;  
}

/* images */
img {
  border: 1px solid #DADADA;
  padding: 8px;
}
img.no-border {
  border: none;
}
img.float-right {
  margin: 5px 0px 5px 15px;  
}
img.float-left {
  margin: 5px 15px 5px 0px;
}

code {
  margin: 5px 0;
  padding: 10px;
  text-align: left;
  display: block;
  overflow: auto;  
  font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace;
  /* white-space: pre; */   
  background: #FCFCF9;
  border: 1px solid #EFEFEF;
}
acronym {
  cursor: help;
  border-bottom: 1px solid #777;
}
blockquote {
  margin: 15px;
   padding: 0 0 0 30px;    
    font: bold 1.3em/1.5em 'Trebuchet MS', Sans-serif;   
  background: #FCFCF9;
   border: 1px solid #EFEFEF;
  color: #6C6E3A;
}

/* start - table */
table {
  border-collapse: collapse;
  margin: 15px;  
}
th strong {
  color: #FFF;
}
th {
  background: #882D2D;
  height: 29px;
  padding-left: 12px;
  padding-right: 12px;
  color: #FFF;
  text-align: left;
  border-left: 1px solid #EDC9C9;
  border-bottom: 1px solid #FFF;
}
tr {
  height: 30px;
  background: #F3F3F3;
}
td {
  padding-left: 11px;
  padding-right: 11px;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
/* end - table */

/* form elements */
form {
  margin: 15px;
  padding: 15px 5px;
  border: 1px solid #EFEFEF; 
  background: #F8F8F8;  
}
label {
  display:block;
  font-weight:bold;
  margin:5px 0;
}
input {
  padding: 2px;
  border: 1px solid #EFEFEF;
  font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif;  
  color: #666666;
}
textarea {
  width: 280px;
  padding:2px;
  border: 1px solid #EFEFEF;
  font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif;
  height:100px;
  display:block;    
  color: #666666;
}
input.button { 
  margin: 0; 
  font: bold 1em Arial, Sans-serif; 
  border: 1px solid #EFEFEF;
  padding: 2px 3px;   
  background: #F1F0E4;
}

/* search form */
.searchform {
  background-color: transparent;
  border: none;  
  margin: 0; padding: 5px 0 15px 0;  
  width: 190px;  
}
.searchform p { margin: 0; padding: 0; }
.searchform input.textbox { 
  width: 120px;
  color: #333; 
  height: 18px;
  padding: 2px;  
  vertical-align: top;
}
.searchform input.button { 
  font: bold 12px Arial, Sans-serif; 
  color: #333;  
  width: 60px;
  height: 26px;
  border: none;
  padding: 3px 5px;  
  vertical-align: top;
}

/***********************
    LAYOUT
************************/

#header-content, #footer-content, #content {
  width: 810px;    
}
#header-wrap, #footer-wrap, #content-wrap {
  min-width: 810px;  
}

/* header */
#header-wrap {
  height: 160px;
  text-align: left;  
  background: #FFF url(EliteCircle-images/headerbg.jpg) repeat-x 0 0;      
}
#header-content {
  position: relative;
  margin: 0 auto; 
  padding: 0;
}
#header-content #logo {
  position: absolute;  
  font: normal 40px/65px Georgia, "Times New Roman", Times, serif;
  letter-spacing: -1px; 
  color: #FFF;
  background: #3F1204 url(EliteCircle-images/logobg.jpg) repeat-x left top;
  border: 1px solid #4E460F;
  height: 65px;
  padding: 0 10px;
  margin: 0;
  
  /* change the values of left and top to adjust the position of the logo */
  top: 18px; left: 0px;
}
#header-content #logo a {
  text-decoration: none;
  color: #FFF;
  background: transparent;
}
#header-content #slogan {
  position: absolute;  
  font: normal 12px 'Trebuchet MS', Tahoma, sans-serif;
  letter-spacing: 0px;
  color: #BBB;   
  margin: 0; padding: 0;
  
  /* change the values of left and top to adjust the position of the slogan */
  top: 88px; left: 30px;
}

/* header menu */
#header-content ul {
  position: absolute;
  right: 0px; top: 125px; 
  font: bold 12px Georgia, "Times New Roman", Times, serif;
  list-style: none;
  margin: 0; padding: 0;    
  text-transform: uppercase;    
}
#header-content li {
  display: inline;
}
#header-content li a {
  float: left;
  display: block;
  padding: 0px 18px 7px 18px;  
  color: #F3A251; 
  text-decoration: none;
}
#header-content li a:hover {
  color: #F88F26;
}
#header-content li a#current  {  
  color: #FFF;  
}

#header-content #header-links {
  position: absolute;
  top: 5px; right:10px;  
  color: #8E5F2F;
  font-size: 90%;
}
#header-content #header-links P {
  margin: 0; padding: 0;
}
#header-content #header-links a {  
  color: #A4A4A4;
  text-decoration: none;
}
#header-content #header-links a:hover {
  color: #F3A251;
}

/* content */
#content-wrap {
  clear: both;
  background: #FFF url(EliteCircle-images/contentbg.jpg) repeat-y center top;
  float: left;    
  width: 100%;
}
#content {
  text-align: left;  
  margin: 30px auto;
  padding: 0;  
}

/* sidebar */
#sidebar {
  float: left;
  width: 190px;
  margin: 0 0 10px 0;
  padding: 5px 0 0 0;
}
#sidebar h1 {
  font: normal 1.8em Georgia, "Times New Roman", Times, serif;
  color: #6C6E3A;
  padding: 0;
  margin: 15px 0 10px 5px;
  letter-spacing:-1px;  
}
#sidebar ul.sidemenu {
  margin: 5px 0 15px 0;
  padding: 0;  
  border-top: 1px dashed #E1E1E1;  
}
#sidebar ul.sidemenu li {
  list-style: none;
  border-bottom: 1px dashed #E1E1E1;
}
#sidebar ul.sidemenu a {
  display: block;
  color: #666666; 
  text-decoration: none;
  padding: .3em 0 .3em 10px;    
  width: 94%;
}
#sidebar ul.sidemenu a:hover {
  padding: .3em 0 .3em 10px;
  color: #CB4721;
  background: #FFF;  
}

/* main */
#main {
  margin: 0 20px 10px 0; 
  padding: 0;    
  width: 590px;
  float: left;  
}
#main h1 { 
  font: normal 3em Georgia, "Times New Roman", Times, serif;
  color: #111;   
  padding: 0 0 5px 0;
  margin: 15px 15px 20px 15px;
  letter-spacing:-1px;
  background: url(EliteCircle-images/bk_dotted.gif) repeat-x left bottom;
}
#main h1 a {
  color: #111;
  text-decoration: none;
}
#main p, #main h1, #main h2, #main h3, #main blockquote, #main form, #main table {
  margin-left: 0;
}
#main form p {
  margin: 15px;
}


/* footer */
#footer-wrap {
  position: relative;
  clear: both;
  padding: 2.5em 0;
  font: normal .95em 'Trebuchet MS', Tahoma, sans-serif;
  text-align: left;  
  background: url(EliteCircle-images/footerbg.jpg) repeat-x 0 0;
  color: #CCC;
  width: 100%;
  float: left;  
}
#footer-wrap p {
  margin-left: 0;
}
#footer-wrap h2 {
  font: bold 1.6em 'Trebuchet MS', Tahoma, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0px;
  color: #CC9933;
  margin-left: 5px;
}
#footer-content {  
  margin: 0 auto;    
}
#footer-content a {
  color: #C8935D;
}
#footer-content a:hover {
  color: #FFF;
  text-decoration: none;
}
#footer-content ul {
  list-style: none;
  margin: 0; padding: 0;  
  width: 98%;
}
#footer-content ul.columns li {
  border-bottom: 1px dashed #272727;  
}
#footer-content ul.columns li.top {
  border-top: 1px dashed #272727;  
}
#footer-content ul.columns li a {
  display: block;
  font-weight: normal;
  padding: 5px;
  width: 98%;
  color: #BDBDBD;
}
#footer-content ul.columns li a:hover {
  background: #202020;
  color: #FFF;
  text-decoration: none;
}
#footer-content .col {
  width: 260px;
  padding: 0 0 30px 0;      
}
#footer-content .space-sep {
  margin-right: 20px;
}
#footer-content .col2 {
  width: 245px;
  padding: 0 0 30px 0;  
  display: inline;  
}

/* alignment classes */
.float-left  { float: left; }
.float-right { float: right; }
.align-left  {  text-align: left; }
.align-right {  text-align: right; }

/* additional classes */
.clear { clear: both; }
.orange { color: #F3A251; }

.post-footer {
  font-size: 95%;
  border: 1px solid #EFEFEF; 
  background: #F8F8F8; 
  padding: 8px 10px;
  margin: 30px 15px 10px 15px;
}
.post-footer .date {
  background: url('EliteCircle-images/clock.gif') no-repeat left center; 
  padding-left: 20px; margin: 0 10px 0 5px;  
}
.post-footer .comments {
  background: url('EliteCircle-images/comment.gif') no-repeat left center; 
  padding-left: 20px; margin: 0 10px 0 5px;  
}
.post-footer .readmore {
  background: url('EliteCircle-images/page.gif') no-repeat left center;
  padding-left: 20px; margin: 0 10px 0 5px;  
}

</style>



<title>EliteCircle</title>
  
</head>

<body>
  
  <!-- header starts here -->
  <div id="header-wrap"><div id="header-content">  
    
    <h1 id="logo"><a href="index.html" title="">Elite<span class="orange">Circle</span></a></h1>  
    <h2 id="slogan">Put your site slogan here...</h2>    
    
    <div id="header-links">
      <p>
        <a href="index.html">Home</a> | 
        <a href="index.html">Contact</a> | 
        <a href="index.html">Site Map</a>      
      </p>    
    </div>
    
    <!-- Menu Tabs -->
    <ul>
      <li><a href="index.html" id="current">Home</a></li>
      <li><a href="index.html">News</a></li>
      <li><a href="index.html">Downloads</a></li>
      <li><a href="index.html">Support</a></li>
      <li><a href="index.html">About</a></li>      
    </ul>          
  
  </div></div>
        
  <!-- content-wrap starts here -->
  <div id="content-wrap"><div id="content">   
  
  <div id="main">    
    
      <a name="TemplateInfo"></a>        
      <h1>Template Info</h1>
      
            <p>
            <a href="index.html"><img src="images/sample-image.jpg" width="174" height="140" alt="firefox-gray"  class="float-left" /></a>
            <strong>EliteCircle</strong> is a free, W3C-compliant, CSS-based website template
            by <a href="http://www.styleshout.com/">styleshout.com</a>. This work is
            distributed under the <a rel="license" href="http://creativecommons.org/licenses/by/2.5/">
            Creative Commons Attribution 2.5  License</a>, which means that you are free to
            use and modify it for any purpose. All I ask is that you give me credit by including a <strong>link back</strong> to
            <a href="http://www.styleshout.com/">my website</a>.
            </p>

            <p>
            You can find more of my free template designs at <a href="http://www.styleshout.com/">my website</a>.
            For premium commercial designs, you can check out
            <a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate.com</a>.
            </p>
      
      <p class="post-footer align-right">          
        <a href="index.html" class="readmore">Read more</a>
        <a href="index.html" class="comments">Comments (7)</a>
        <span class="date">Jan 09, 2007</span>  
      </p>    
        
      
      <a name="SampleTags"></a>
      <h1>Sample Tags</h1>
        
      <h3>Code</h3>        
      <p><code>
      code-sample { <br />
      font-weight: bold;<br />
      font-style: italic;<br />        
      }
      </code></p>  
      
      <h3>Example Lists</h3>
    
      <ol>
        <li>here is an example of </li>
        <li>an ordered list</li>              
      </ol>  
            
      <ul>          
        <li>here is an example of </li>
        <li>an unordered list</li>              
      </ul>        
      
      <h3>Blockquote</h3>      
      <blockquote><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy 
      nibh euismod tincidunt ut laoreet dolore magna aliquam erat....</p></blockquote>
      
      <h3>Image and text</h3>
      <p>
      <a href="index.html"><img src="images/sample-image.jpg" width="174" height="140" alt="sample image"  class="float-left" /></a>
      Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero. Suspendisse bibendum. 
      Cras id urna. Morbi tincidunt, orci ac convallis aliquam, lectus turpis varius lorem, eu 
      posuere nunc justo tempus leo. Donec mattis, purus nec placerat bibendum, dui pede condimentum 
      odio, ac blandit ante orci ut diam. Cras fringilla magna. Phasellus suscipit, leo a pharetra 
      condimentum, lorem tellus eleifend magna, eget fringilla velit magna id neque. Curabitur vel urna. 
      In tristique orci porttitor ipsum. Aliquam ornare diam iaculis nibh. Proin luctus, velit pulvinar 
      ullamcorper nonummy, mauris enim eleifend urna, congue egestas elit lectus eu est.                 
      </p>
      
      <h3>Table Styling</h3>              
      
        <table>
          <tr>
            <th><strong>post</strong> date</th>
            <th>title</th>
            <th>description</th>
          </tr>
          <tr>
            <td>06.18.2007</td>
            <td><a href="index.html">Augue non nibh</a></td>
            <td><a href="index.html">Lobortis commodo metus vestibulum</a></td>
          </tr>
          <tr>
            <td>06.18.2007</td>
            <td><a href="index.html">Fusce ut diam bibendum</a></td>
            <td><a href="index.html">Purus in eget odio in sapien</a></td>
          </tr>
          <tr>
            <td>06.18.2007</td>
            <td><a href="index.html">Maecenas et ipsum</a></td>
            <td><a href="index.html">Adipiscing blandit quisque eros</a></td>
          </tr>
          <tr>
            <td>06.18.2007</td>
            <td><a href="index.html">Sed vestibulum blandit</a></td>
            <td><a href="index.html">Cras lobortis commodo metus lorem</a></td>
          </tr>
        </table>
      
      <h3>Example Form</h3>
      <form action="#">    
        <p>
        <label>Name</label>
        <input name="dname" value="Your Name" type="text" size="35" />
        <label>Email</label>
        <input name="demail" value="Your Email" type="text" size="35" />
        <label>Your Comments</label>
        <textarea rows="5" cols="5"></textarea>
        <br />  
        <input class="button" value="Submit" type="submit" />    
        </p>    
      </form>          
      <br />    
                    
    </div>    
  
    
    <div id="sidebar">  
    
        <h1>Search Box</h1>  
        <form action="#" class="searchform">
          <p>
          <input name="search_query" class="textbox" type="text" />
            <input name="search" class="button" value="Search" type="submit" />
          </p>      
        </form>      
      
        <h1>Sidebar Menu</h1>
        <ul class="sidemenu">
          <li><a href="index.html">Home</a></li>
          <li><a href="#TemplateInfo">TemplateInfo</a></li>
          <li><a href="#SampleTags">Sample Tags</a></li>
          <li><a href="http://www.styleshout.com/">More Templates</a></li>
          <li><a href="http://www.dreamtemplate.com" title="Web Templates">Web Templates</a></li>
        </ul>    
            
        <h1>Sponsors</h1>
        <ul class="sidemenu">
          <li><a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate</a></li>
          <li><a href="http://www.themelayouts.com" title="WordPress Themes">ThemeLayouts</a></li>
          <li><a href="http://www.imhosted.com" title="Website Hosting">ImHosted.com</a></li>
          <li><a href="http://www.dreamstock.com" title="Stock Photos">DreamStock</a></li>
          <li><a href="http://www.evrsoft.com" title="Website Builder">Evrsoft</a></li>
                    <li><a href="http://www.webhostingwp.com" title="Web Hosting">Web Hosting</a></li>
        </ul>
      
        <h1>Wise Words</h1>
      
        <p>&quot;No man becomes rich unless he enriches others.&quot;</p>    
      
        <p class="align-right">- Andrew Carnegie</p>    
            
        <h1>Support Styleshout</h1>      
        <p>If you are interested in supporting my work and would like to contribute, you are
        welcome to make a small donation through the 
        <a href="http://www.styleshout.com/">donate link</a> on my website - it will 
        be a great help and will surely be appreciated.</p>          
                
    </div>      
  
  <!-- content-wrap ends here -->    
  </div></div>

  <!-- footer starts here -->  
  <div id="footer-wrap"><div id="footer-content">
  
    <div class="col float-left space-sep">
      <h2>Site Partners</h2>
      <ul class="columns">
                <li class="top"><a href="http://www.dreamtemplate.com" title="Website Templates">DreamTemplate</a></li>
                <li><a href="http://www.themelayouts.com" title="WordPress Themes">ThemeLayouts</a></li>
                <li><a href="http://www.imhosted.com" title="Website Hosting">ImHosted.com</a></li>
                <li><a href="http://www.dreamstock.com" title="Stock Photos">DreamStock</a></li>
                <li><a href="http://www.evrsoft.com" title="Website Builder">Evrsoft</a></li>
                <li><a href="http://www.webhostingwp.com" title="Web Hosting">Web Hosting</a></li>
      </ul>      
    </div>
    
    <div class="col float-left">
      <h2>Links</h2>
      <ul class="columns">        
        <li class="top"><a href="index.html">Link One</a></li>
        <li><a href="index.html">Link Two</a></li>
        <li><a href="index.html">Link Three</a></li>
        <li><a href="index.html">Link Four</a></li>
        <li><a href="index.html">Link Five</a></li>
                <li><a href="index.html">Link Six</a></li>
      </ul>
    </div>    
  
    <div class="col2 float-right">
            <h2>Site Links</h2>
      <ul class="columns">
        <li class="top"><a href="index.html">Home</a></li>
                <li><a href="index.html">About</a></li>
        <li><a href="index.html">Sitemap</a></li>
        <li><a href="index.html">RSS Feed</a></li>                
      </ul>

            <p>
      &copy; copyright 2010 <strong>Your Company Name</strong><br />
      <a href="http://www.bluewebtemplates.com/" title="Website Templates">website templates</a> by <a href="http://www.styleshout.com/">styleshout</a>|<a href="http://www.ehostinfo.com/">Web 
      Hosting</a> <br />

      Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> |
               <a href="http://validator.w3.org/check/referer">XHTML</a>
      </p>
    </div>
    
    <br class="clear" />
  
  </div></div>
  <!-- footer ends here -->

</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 padding-right: 15px;
32.form padding-left: 15px;
33.form margin: 15px;
34.form padding: 15px 5px;
35.form border: 1px solid #EFEFEF;
36.Adding border to form
37.Error Fields
38.Error Fields 3
39.Error Fields 2
40.CSS Forms: Focus and Required Fields
41.CSS styled form elements
42.Spreadsheet form
43.A simple search form
44.Register with us form
45.Form with border
46.Submit form
47.Reset and Submit Example