Hello and Thank you for visiting designtopx.wordpress.com.
Please note: The new home for this post is can be found here -
For your review and use, I am presenting a free HTML/CSS form that has been tested on all major browsers (on a Windows computer). Here is what the final form looks like (view live version here – http://bit.ly/8aVJ6R ):
HTML Source Code
- <!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>EMPTY</title>
- <link href="form-style.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="form">
- <form action="#" method="post" >
- <fieldset>
- <div>
- <label for="title"><span>Title</span></label>
- <input type="text" name="title" class="title" value="Lorem ipsum dolor sitamet" />
- </div>
- <div>
- <label for="title"><span>Enter Description Here:</span></label>
- <textarea name="description">Pellentesque habitant morbi tristique senectus et netus etmalesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget,tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mivitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra.Vestibulum erat wisi, condimentum sed, commodo vitae, </textarea>
- <input type="hidden" value="foo" name="foo" />
- <input type="hidden" value="bar" name="bar" />
- </div>
- <div>
- <input type="text" size="28" readonly="readonly" class="readonly" value="This text is Read-Only"name="pubDate" />
- <input type="hidden" value="baz" name="baz" />
- <span class="pad-left"><button type="submit">Send</button></span>
- </div>
- </fieldset>
- </form>
- </div>
- </body>
- </html>
* This source code was highlighted with Source CodeHighlighter
The CSS
- body {
- background-color:#797979;
- margin:0;
- font:13px Trebuchet MS, Arial, Helvetica, Sans-Serif;
- }
- #form{
- background:url(formdesign.png) no-repeat top left;
- width:469px;
- height:332px;
- position:relative;
- float:left;
- margin-top:55px;
- margin-left:15px;
- }
- #form form{
- position:relative;
- float:left;
- margin-top:55px;
- margin-left:15px;
- }
- fieldset{
- border:none;
- width:330px;
- }
- div{
- padding:0 0 5px;
- }
- input.title{
- color:#3399FF;
- font-size:14px;
- font-weight:bold;
- width:400px
- }
- input.readonly{
- color:#999;
- }
- label span{
- color:blue;
- }
- textarea{
- color:#3399FF;
- width:420px;
- height:160px;
- }
- .clear{
- position:relative;
- clear:left;
- }
- .pad-left:{
- padding-left:35px;
- }
- .push-30{
- position:relative;
- float:left;
- margin-left:30px;
- }
* This source code was highlighted with Source Code Highlighter.
The form looks the same in all the latest browsers (tested in IE7, Firefox 3.0.14, Opera 10.01, Safari 4.0.3)
*Download the source code here (includes .PSD for the form background) – Link![]()
About the Author
Kalim Fleet is a professional web designer and blogger with over 6 years experience. The web is his passion as he splits his time between blog writing, software development and social media. He loves using and developing new applications for the web, mobile, and desktop.


November 21, 2009 at 12:05 am
Thanks. I’ll give this one a try!
November 21, 2009 at 10:42 pm
This is incredibly helpful.
–
http://jasonfebery.wordpress.com/
November 22, 2009 at 1:08 pm
Thank you Jason. Your comment is appreciated!
November 22, 2009 at 7:33 am
[...] Cross browser compliant HTML/CSS form download with PSD file [...]
November 22, 2009 at 10:02 pm
Looks good. Casual not too elegant but ok
December 31, 2009 at 6:54 pm
Thanks dor tutorial! helpfull
Happy new year