Friday, 31 August 2012

5 Amazing CSS3 Contact Us Forms

Important: All scripts hosted on widcraft.googlecode.com don't work anymore because Google has blocked that SVN repository.

Original creator and form source CSS Globe and all credits goes to them i'am just sharing with you guys , visit their website for more awesome stuff including this forms. So these forms looks truly beautiful and professional ( Thanks to CSS Globe ) so here we go with CSS:

CSS :

<style>
/* form 1 */
#form1{
margin:1em 0;
                width:600px;
padding-top:10px;
background:url(http://2.bp.blogspot.com/-0D1kOCGraFs/UEBjnfiwR0I/AAAAAAAALO4/FadI0qwtlEQ/s1600/form_top.gif) no-repeat 0 0;
}
#form1 fieldset{
margin:0;
padding:0;
border:none; float:left;
display:inline;
width:260px;
margin-left:25px;
} #form1 legend{display:none;} #form1 p{margin:.5em 0;} #form1 label{display:block;} #form1 input, #form1 textarea{ width:252px;
border:1px solid #ddd;
background:#fff url(http://2.bp.blogspot.com/-sARC36qAi0E/UEBjmuczLOI/AAAAAAAALO0/wN4bFj_5T4I/s1600/form_input.gif) repeat-x;
padding:3px;
                outline:0px;
} #form1 textarea{
height:125px;
overflow:auto;
                outline:0px;
} #form1 p.submit{
clear:both;
background:url(http://4.bp.blogspot.com/-dtvdGVL1sUw/UEBjjalqHpI/AAAAAAAALOk/mqkhYzq73Gg/s1600/form_bottom.gif) no-repeat 0 100%;
padding:0 25px 20px 25px;
margin:0;
text-align:right;
} #form1 button{
width:150px;
height:37px;
line-height:37px; border:none;
background:url(http://2.bp.blogspot.com/-X7JKOjxk5vs/UEBjl0YloiI/AAAAAAAALOs/LHXj1wck3YE/s1600/form_button.gif) no-repeat 0 0;
color:#fff;
cursor:pointer;
text-align:center;
}
/* // form 1 */

/* form 2 */
#form2{
margin:1em 0;
color:#fff;
width:320px; /* customize width, this form have fluid layout */
}
#form2 h3{
margin:0;
background:#57a700 url(http://4.bp.blogspot.com/-G6jgJT0eD2A/UEBkATZTnAI/AAAAAAAALPI/DbLLWpvtk7s/s1600/form_heading.gif) repeat-x; color:#fff;
font-size:20px;
border:1px solid #57a700;
border-bottom:none;
} #form2 h3 span{
display:block;
padding:10px 20px;
background:url(http://3.bp.blogspot.com/-xjy5ID0ZeNs/UEBkA3QSd1I/AAAAAAAALPQ/SRghHgLxPws/s1600/form_ico.gif) no-repeat 93% 50%; } #form2 fieldset{
margin:0;
padding:0;
border:none; border-top:3px solid #000;
background:#000 url(http://2.bp.blogspot.com/-bYM4lMdduoM/UEBkCc2zW3I/AAAAAAAALPg/AWUHZrKS8KU/s1600/form_top.gif) repeat-x; padding-bottom:1em;
} #form2 legend{display:none;} #form2 p{margin:.5em 20px;} #form2 label{display:block;} #form2 input, #form2 textarea{ width:272px;
border:1px solid #111;
background:#282828 url(http://3.bp.blogspot.com/-mq5WKJKvlLY/UEBkBjwWJjI/AAAAAAAALPY/g7qFI_CRoZw/s1600/form_input.gif) repeat-x;
padding:5px 3px;
                outline:0px;
color:#fff;
} #form2 textarea{
height:125px;
overflow:auto;
                outline:0px;
} #form2 p.submit{
text-align:right;
} #form2 button{
padding:0 20px;
height:32px;
line-height:32px; border:1px solid #70ad2e;
background:#5aae00 url(http://3.bp.blogspot.com/-Ei0R4Sg_8zk/UEBj_uQ0UFI/AAAAAAAALPE/D2D3Rj2jEqg/s1600/form_button.gif) repeat-x;
color:#fff;
cursor:pointer; text-align:center; }
/* // form 2 */
/* form 3 */
#form3{
margin:1em 0;
background:url(http://3.bp.blogspot.com/-h1hoVvqbaTw/UEBk6gi-OSI/AAAAAAAALQA/_-WaXG-ckl4/s1600/form_bg.jpg) no-repeat 0 0;
width:542px;
height:364px; /* fixed size (envelope graphic) */
overflow:hidden;
}
#form3 h3{display:none;} #form3 fieldset{
margin:0;
padding:0;
border:none; float:left;
display:inline;
width:200px;
margin-left:34px;
padding-top:80px;
} #form3 fieldset.last{
width:254px;
margin-left:17px;
} #form3 legend{display:none;} #form3 p{margin:.5em 0;} #form3 label{display:block;} #form3 input, #form3 textarea{ width:192px;
border:1px solid #ddd;
background:#fff url(http://4.bp.blogspot.com/-p9_enfJAP0U/UEBk8e_P0nI/AAAAAAAALQM/o8h3V_f6iYQ/s1600/form_input.gif) repeat-x;
padding:3px;
                outline:0px;
} #form3 textarea{
width:246px;
height:200px;
overflow:auto;
                outline:0px;
} #form3 p.submit{
margin:0 34px;
clear:both;
position:relative;
} #form3 button{
padding:0;
position:absolute;
left:0;
top:-3.5em;
width:95px;
height:36px;
text-indent:-8000px;
overflow:hidden;
border:none;
background:url(http://1.bp.blogspot.com/-l6MSvZZN3Wg/UEBk7bxuQOI/AAAAAAAALQI/DbZBz5r6HdE/s1600/form_button.gif) no-repeat 0 0;
color:#fff;
cursor:pointer;
}
/* // form 3 */
/* form 4 */
#form4{
margin:1em 0;
padding-top:1.5em;
color:#246878;
width:350px; /* customize width, this form have fluid layout */
background:#fbfaf4 url(http://1.bp.blogspot.com/-GEbcEFdLZm8/UEBlYlvJQnI/AAAAAAAALQY/uCYG1VZGIQ0/s1600/form_bg.gif) repeat-y; }
#form4 h3{
margin:0 20px;
height:28px;
text-indent:-8000px;
background:url(http://1.bp.blogspot.com/-bT-TwQJb-jU/UEBlaZ6KDHI/AAAAAAAALQo/9jv8FE6fFdU/s1600/form_heading.gif) no-repeat 0 0; } #form4 fieldset{
margin:0;
padding:0;
border:none; padding-bottom:1em;
} #form4 legend{display:none;} #form4 p{margin:.5em 20px;} #form4 label{display:block;} #form4 input, #form4 textarea{ width:302px;
border:1px solid #dfdfdf;
background:#fff;
                outline:0px;
padding:5px 3px;
} #form4 textarea{
height:125px;
                outline:0px;
overflow:auto;
} #form4 p.submit{
text-align:right;
} #form4 button{
margin:0;
padding:0;
text-indent:-8000px;
overflow:hidden;
width:88px;
height:56px;
border:none;
background:url(http://4.bp.blogspot.com/-mjeqHAGvxQw/UEBlZXxoA3I/AAAAAAAALQg/mpQV5iDwdAc/s1600/form_button.gif) no-repeat 0 0;
cursor:pointer;
text-align:left;
}
/* // form 4 */

/* form 5 */
#form5{
margin:1em 0;
padding-top:10px;
}
#form5 fieldset{
margin:0;
padding-top:.5em;
border:none; border-top:1px solid #f1f1f1;
} #form5 legend{
background:#fff;
padding:0 5px;
font-style:italic;
} #form5 p{
clear:both;
margin:.5em 0;
overflow:hidden;
} #form5 label{
float:left;
width:60px;
display:block;
text-align:right;
margin-right:10px;
} #form5 input, #form5 textarea{ margin:0; width:250px;
                outline:0px;
border:1px solid #ddd; padding:3px 5px 3px 25px;
} #form5 input#name{background:#fff url(http://4.bp.blogspot.com/-NM0doyerS-g/UEBl4hR2bjI/AAAAAAAALRA/uqslooN0RSw/s1600/form_name.gif) no-repeat 5px 50%;}
#form5 input#email{background:#fff url(http://2.bp.blogspot.com/-QpZy5KIQwE4/UEBl2NcTCCI/AAAAAAAALQ4/hkxq9uFqJP8/s1600/form_email.gif) no-repeat 5px 50%;}
#form5 input#web{background:#fff url(http://2.bp.blogspot.com/-1Xy0y_ktDrg/UEBl6Y-t0dI/AAAAAAAALRM/pROxy4_5eBY/s1600/form_url.gif) no-repeat 5px 50%;}
#form5 textarea#message{background:#fff url(http://2.bp.blogspot.com/-5QAVbpECQr0/UEBl5bkQb1I/AAAAAAAALRI/unfOLRn-438/s1600/form_note.gif) no-repeat 5px 6px;}
#form5 textarea{
height:125px;
                outline:0px;
overflow:auto;
} #form5 p.submit{
clear:both;
margin:1em 0;
padding:.5em 70px;
border-top:1px solid #f1f1f1; } #form5 button{
height:28px;
line-height:28px; border-top:1px solid #999;
border-left:1px solid #999;
border-right:1px solid #333;
border-bottom:1px solid #333;
background:url(http://4.bp.blogspot.com/-oHBZPLJ9PdU/UEBl1NTsMII/AAAAAAAALQw/EFy0LPBw998/s1600/form_button.gif) no-repeat;
padding:0 10px 0 25px;
color:#333;
cursor:pointer;
text-align:left;
font-size:11px;
font-weight:bold;
}
/* // form 5 */
</style>

 Just post above CSS in your blog's CSS or on your HTML document now below is HTML markup :

<form id="form1/2/3/4/5" action="/" method="post">
<fieldset><legend>Contact form</legend>
<p class="first">
<label for="name">Name</label>
<input type="text" name="name" id="name" size="30" />
</p>
<p>
<label for="email">Email</label>
<input type="text" name="email" id="email" size="30" />
</p>
<p>
<label for="web">Website</label>
<input type="text" name="web" id="web" size="30" />
</p>
<p>
<label for="message">Message</label>
<textarea name="message" id="message" cols="30" rows="10"></textarea>
</p>
<p class="submit"><button type="submit">Send</button></p>
</fieldset>
</form>

Post above HTML in your document and with if form1 /form2 /form3 /form4 or form5 because every id has different form style.
Important: Check our new website TricksPanda.com for WordPress tutorials, plugins and more.
 
Powered by Blogger.