input padding: 2px; : input « Form « HTML / CSS






input padding: 2px;

   

<!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.'input' Example
2.input with class name
3.Set margin for input control
4.Set width of input control
5.Set input background color and color
6.Set width and display style for input
7.Set all input control for margin, left float, width and display style
8.Set input control with focus to have yellow background
9.Set required label field to have bold font and highlight color
10.Set border width, border style and border color for all input controls
11.Set width and margin for all input controls
12.Set background color, font and border for form control
13.Tabbing Order with tabindex
14.Access Keys
15.input display: block;
16.input margin-bottom: 1.25em;
17.input width: 150px;
18.input border: 1px solid black;
19.input border-right: 2px solid black;
20.input border-bottom: 2px solid black;
21.Required field
22.Register for our e-mail
23.Login form
24.input class id selector and property selector
25.input width: 12em
26.input margin: 0 0 .5em 0;
27.Attribute Value Selectors for input controls
28.input padding:2px;
29.input border:1px solid #eee;
30.input font: normal 1em Verdana, sans-serif;
31.input color:#777;
32.input border: 1px solid #EFEFEF;
33.input font: normal 1em Verdana, 'Trebuchet MS', Tahoma, sans-serif;
34.input color: #666666;
35.input:focus background-color:#ffffcc;
36.input:focus border-width:3px;
37.input:focus border-color:#ff0000;
38.input background: blue;
39.input color: white;
40.input border: 3px solid royalblue;
41.Input border: 2px inset #CECECE;
42.Input height: 17px;
43.Input float: left;
44.Input margin: 8px 0 0 7px;
45.Input padding: 0 0 0 5px;
46.Input font-size: 12px;
47.Input color: #454545
48.Input height: 20px;
49.Input width: 329px;
50.Input border-top: 1px solid #700303;
51.Input border-left: 1px solid #700303;
52.Input border-bottom: 0px;
53.Input border-right: 0px;
54.Input margin: 0 5px 0 11px;
55.Input padding: 2px 0 0 2;
56.Input background-color: red
57.input border: 1pt solid #6A849D;
58.input font: normal 10px tahoma;
59.input color: #707070;
60.input margin: 0px 0px 5px 0px;
61.input color: lightblue;
62.input border: 3px solid lightblue;
63.A simple form with input elements
64.An input form that calls a form-to-email Cgi script
65.input color: #fcc; background-color: #900; font-size: 1.5em; border: 1px solid #660; padding: 4px;
66.input margin-bottom: 1.5em; width: 50%; color: #666; background-color: #ccc;
67.Using border to highlight input
68.input color: #00008B;background-color: #ADD8E6;border: 1px outset #00008B;
69.input color: #00008B;background-color: #E3F2F7;border: 1px inset #00008B;width: 200px;
70.input:focus border: 2px solid #000000;
71.input:focus background-color:#ffffcc; border-width:3px;border-color:#ff0000;
72.Single line text input control
73.Multi line text input control
74.input:focus background-color:#c4c4c4;
75.input background-color:#cccccc;
76.input for email
77.File input
78.Image input
79.Hidden Input Example
80.Message Input form
81.File Upload Test
82.A prepopulated text field with a maximum length
83.Change textbox border when focus in
84.'alt': an alternate description
85.'disabled' sets the enabled state of an element
86.'vcard_name' sets the element vCard value to use with the autocomplete list provided by the browser