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

HTML / CSS » Form » form 
form background: #F5F5F5;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en">


<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 -" />
<meta name="Robots" content="index,follow" />

<style type='text/css'>
/* form elements */
form {
  padding: 0 5px;
  background: #F5F5F5;  
label {
  margin:5px 0;
input {
  border:1px solid #eee;
  font: normal 1em Verdana, sans-serif;
textarea {
  font: normal 1em Verdana, sans-serif;
  border:1px solid #eee;
  font: bold 12px Arial, Sans-serif; 
  height: 24px;
  margin: 0;
  padding: 2px 3px; 
  color: #333;
  background: #e7e6e6 url(MarketPlace-images/button.jpgrepeat-x;
  border: 1px solid #dadada;





<!-- wrap starts here -->
<div id="wrap">
      <h3>Example Form</h3>
      <form action="#">      
      <input name="dname" value="Your Name" type="text" size="30" />
      <input name="demail" value="Your Email" type="text" size="30" />
      <label>Your Comments</label>
      <textarea rows="5" cols="5"></textarea>
      <br />  
      <input class="button" type="submit" />    


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: #F8F8F8;
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  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.