Layout form with CSS : form « Form Style « HTML / CSS

HTML / CSS
1. Background Attributes
2. Basic Attributes
3. Basic Tags
4. Box Model
5. CSS Attributes and Javascript Style Properties
6. CSS Controls
7. Form Attributes
8. Form Style
9. Form Tags
10. Frame Attributes
11. Frame Tags
12. HTML
13. IE Firefox
14. Images
15. Layout
16. Layout Attributes
17. Link Attributes
18. Link Tags
19. List Attributes
20. List Style
21. List Tags
22. Marquee Attributes
23. Meta Tags
24. Microsoft Attributes
25. Object Attributes
26. Object Tags
27. Reference
28. Style Basics
29. Styles Tags
30. Table Attributes
31. Table Style
32. Table Tags
33. Text
34. Text Attributes
35. Text Tags
36. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
HTML / CSS » Form Style » form 
Layout form with CSS
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <style type="text/css">
input {
        width: 175px;
        margin-bottom: 10px;
}

label {
        display: block;
        text-align: right;
        float: left;
        width: 75px;
        padding-right: 20px;
}

.checkbox {
  width:1em;
}

br {
   clear: left;
}

.buttonSubmit {
  width: 75px;
  margin-left: 95px;
}
  </style>
</head>

<body>


<form action="" method="post">

  <label for="uname">User Name</label>
  <input type="text" name="uname" id="uname" value="" /><br />

  <label for="pname">Password</label>
  <input type="text" name="uname" id="uname" value="" /><br />

  <label for="recall">Remember you?</label>
  <input type="checkbox" name="recall" id="recall" class="checkbox" />
  <br />

  <input type="submit" name="Submit" value="Submit" class="buttonSubmit" />


</form>

</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. Wizard form
21. Form for registration
22. form width: 75%
23. form margin: 3em auto
24. Add BR to table cell to layout the form controls
25. Use table to align the form controls
26. Table and Form Example
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.