10 CSS HTML Form Designs

Let's face it, HTML forms are integral part of the web, it's a powerful and crucial tool for interacting with users. But without some styling and positioning, forms just look awful! So, how do you make it appealing and presentable? This is where the CSS comes into play. In this article I've compiled 10 Form styles which you can directly copy and use it on your website projects. These forms look great on all modern browsers, but may require some tweaking on old browsers. Some forms here do not have labels, they rely on HTML5 placeholder attribute, unfortunately older browsers do not support this. So, if you are worried about it, you can use placeholder alternatives such as Placeholders.js.

Form Style 1

This is the clean CSS contact form layout. It has no background and comes with bold labels, light blue button and soft box-shadow on focus for input fields.
  •  
HTML
<form> <ul class="form-style-1"> <li><label>Full Name <span class="required">*</span></label><input type="text" name="field1" class="field-divided" placeholder="First" /> <input type="text" name="field2" class="field-divided" placeholder="Last" /></li> <li> <label>Email <span class="required">*</span></label> <input type="email" name="field3" class="field-long" /> </li> <li> <label>Subject</label> <select name="field4" class="field-select"> <option value="Advertise">Advertise</option> <option value="Partnership">Partnership</option> <option value="General Question">General</option> </select> </li> <li> <label>Your Message <span class="required">*</span></label> <textarea name="field5" id="field5" class="field-long field-textarea"></textarea> </li> <li> <input type="submit" value="Submit" /> </li> </ul> </form>
CSS
<style type="text/css"> .form-style-1 { margin:10px auto; max-width: 400px; padding: 20px 12px 10px 20px; font: 13px "Lucida Sans Unicode", "Lucida Grande", sans-serif; } .form-style-1 li { padding: 0; display: block; list-style: none; margin: 10px 0 0 0; } .form-style-1 label{ margin:0 0 3px 0; padding:0px; display:block; font-weight: bold; } .form-style-1 input[type=text], .form-style-1 input[type=date], .form-style-1 input[type=datetime], .form-style-1 input[type=number], .form-style-1 input[type=search], .form-style-1 input[type=time], .form-style-1 input[type=url], .form-style-1 input[type=email], textarea, select{ box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; border:1px solid #BEBEBE; padding: 7px; margin:0px; -webkit-transition: all 0.30s ease-in-out; -moz-transition: all 0.30s ease-in-out; -ms-transition: all 0.30s ease-in-out; -o-transition: all 0.30s ease-in-out; outline: none; } .form-style-1 input[type=text]:focus, .form-style-1 input[type=date]:focus, .form-style-1 input[type=datetime]:focus, .form-style-1 input[type=number]:focus, .form-style-1 input[type=search]:focus, .form-style-1 input[type=time]:focus, .form-style-1 input[type=url]:focus, .form-style-1 input[type=email]:focus, .form-style-1 textarea:focus, .form-style-1 select:focus{ -moz-box-shadow: 0 0 8px #88D5E9; -webkit-box-shadow: 0 0 8px #88D5E9; box-shadow: 0 0 8px #88D5E9; border: 1px solid #88D5E9; } .form-style-1 .field-divided{ width: 49%; } .form-style-1 .field-long{ width: 100%; } .form-style-1 .field-select{ width: 100%; } .form-style-1 .field-textarea{ height: 100px; } .form-style-1 input[type=submit], .form-style-1 input[type=button]{ background: #4B99AD; padding: 8px 15px 8px 15px; border: none; color: #fff; } .form-style-1 input[type=submit]:hover, .form-style-1 input[type=button]:hover{ background: #4691A4; box-shadow:none; -moz-box-shadow:none; -webkit-box-shadow:none; } .form-style-1 .required{ color:red; } </style>

Form Style 2

Another clean Form style fits perfectly into any clean webpage layout. The form has soft box-shadow effects around the fields, and nice orange button.
Provide your information
HTML
<div class="form-style-2"> <div class="form-style-2-heading">Provide your information</div> <form action="" method="post"> <label for="field1"><span>Name <span class="required">*</span></span><input type="text" class="input-field" name="field1" value="" /></label> <label for="field2"><span>Email <span class="required">*</span></span><input type="text" class="input-field" name="field2" value="" /></label> <label><span>Telephone</span><input type="text" class="tel-number-field" name="tel_no_1" value="" maxlength="4" />-<input type="text" class="tel-number-field" name="tel_no_2" value="" maxlength="4" />-<input type="text" class="tel-number-field" name="tel_no_3" value="" maxlength="10" /></label> <label for="field4"><span>Regarding</span><select name="field4" class="select-field"> <option value="General Question">General</option> <option value="Advertise">Advertisement</option> <option value="Partnership">Partnership</option> </select></label> <label for="field5"><span>Message <span class="required">*</span></span><textarea name="field5" class="textarea-field"></textarea></label> <label><span> </span><input type="submit" value="Submit" /></label> </form> </div>
CSS
<style type="text/css"> .form-style-2{ max-width: 500px; padding: 20px 12px 10px 20px; font: 13px Arial, Helvetica, sans-serif; } .form-style-2-heading{ font-weight: bold; font-style: italic; border-bottom: 2px solid #ddd; margin-bottom: 20px; font-size: 15px; padding-bottom: 3px; } .form-style-2 label{ display: block; margin: 0px 0px 15px 0px; } .form-style-2 label > span{ width: 100px; font-weight: bold; float: left; padding-top: 8px; padding-right: 5px; } .form-style-2 span.required{ color:red; } .form-style-2 .tel-number-field{ width: 40px; text-align: center; } .form-style-2 input.input-field, .form-style-2 .select-field{ width: 48%; } .form-style-2 input.input-field, .form-style-2 .tel-number-field, .form-style-2 .textarea-field, .form-style-2 .select-field{ box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; border: 1px solid #C2C2C2; box-shadow: 1px 1px 4px #EBEBEB; -moz-box-shadow: 1px 1px 4px #EBEBEB; -webkit-box-shadow: 1px 1px 4px #EBEBEB; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; padding: 7px; outline: none; } .form-style-2 .input-field:focus, .form-style-2 .tel-number-field:focus, .form-style-2 .textarea-field:focus, .form-style-2 .select-field:focus{ border: 1px solid #0C0; } .form-style-2 .textarea-field{ height:100px; width: 55%; } .form-style-2 input[type=submit], .form-style-2 input[type=button]{ border: none; padding: 8px 15px 8px 15px; background: #FF8500; color: #fff; box-shadow: 1px 1px 4px #DADADA; -moz-box-shadow: 1px 1px 4px #DADADA; -webkit-box-shadow: 1px 1px 4px #DADADA; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; } .form-style-2 input[type=submit]:hover, .form-style-2 input[type=button]:hover{ background: #EA7B00; color: #fff; } </style>

Form Style 3

If you are into pink color, you will find this form style interesting. Form has light pink background and rounded fieldset to match your personal pink pages.
Personal
Message
HTML
<div class="form-style-3"> <form> <fieldset><legend>Personal</legend> <label for="field1"><span>Name <span class="required">*</span></span><input type="text" class="input-field" name="field1" value="" /></label> <label for="field2"><span>Email <span class="required">*</span></span><input type="email" class="input-field" name="field2" value="" /></label> <label for="field3"><span>Phone <span class="required">*</span></span><input type="text" class="input-field" name="field3" value="" /></label> <label for="field4"><span>Subject</span><select name="field4" class="select-field"> <option value="Appointment">Appointment</option> <option value="Interview">Interview</option> <option value="Regarding a post">Regarding a post</option> </select></label> </fieldset> <fieldset><legend>Message</legend> <label for="field6"><span>Message <span class="required">*</span></span><textarea name="field6" class="textarea-field"></textarea></label> <label><span> </span><input type="submit" value="Submit" /></label> </fieldset> </form> </div>
CSS
<style type="text/css"> .form-style-3{ max-width: 450px; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; } .form-style-3 label{ display:block; margin-bottom: 10px; } .form-style-3 label > span{ float: left; width: 100px; color: #F072A9; font-weight: bold; font-size: 13px; text-shadow: 1px 1px 1px #fff; } .form-style-3 fieldset{ border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; margin: 0px 0px 10px 0px; border: 1px solid #FFD2D2; padding: 20px; background: #FFF4F4; box-shadow: inset 0px 0px 15px #FFE5E5; -moz-box-shadow: inset 0px 0px 15px #FFE5E5; -webkit-box-shadow: inset 0px 0px 15px #FFE5E5; } .form-style-3 fieldset legend{ color: #FFA0C9; border-top: 1px solid #FFD2D2; border-left: 1px solid #FFD2D2; border-right: 1px solid #FFD2D2; border-radius: 5px 5px 0px 0px; -webkit-border-radius: 5px 5px 0px 0px; -moz-border-radius: 5px 5px 0px 0px; background: #FFF4F4; padding: 0px 8px 3px 8px; box-shadow: -0px -1px 2px #F1F1F1; -moz-box-shadow:-0px -1px 2px #F1F1F1; -webkit-box-shadow:-0px -1px 2px #F1F1F1; font-weight: normal; font-size: 12px; } .form-style-3 textarea{ width:250px; height:100px; } .form-style-3 input[type=text], .form-style-3 input[type=date], .form-style-3 input[type=datetime], .form-style-3 input[type=number], .form-style-3 input[type=search], .form-style-3 input[type=time], .form-style-3 input[type=url], .form-style-3 input[type=email], .form-style-3 select, .form-style-3 textarea{ border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border: 1px solid #FFC2DC; outline: none; color: #F072A9; padding: 5px 8px 5px 8px; box-shadow: inset 1px 1px 4px #FFD5E7; -moz-box-shadow: inset 1px 1px 4px #FFD5E7; -webkit-box-shadow: inset 1px 1px 4px #FFD5E7; background: #FFEFF6; width:50%; } .form-style-3 input[type=submit], .form-style-3 input[type=button]{ background: #EB3B88; border: 1px solid #C94A81; padding: 5px 15px 5px 15px; color: #FFCBE2; box-shadow: inset -1px -1px 3px #FF62A7; -moz-box-shadow: inset -1px -1px 3px #FF62A7; -webkit-box-shadow: inset -1px -1px 3px #FF62A7; border-radius: 3px; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; font-weight: bold; } .required{ color:red; font-weight:normal; } </style>

Form Style 4

This is another nice style with arsenic background color for your form. I tried to give it a little notebook look with dashed bottom borders on the fields.
HTML
<form class="form-style-4" action="" method="post"> <label for="field1"> <span>Enter Your Name</span><input type="text" name="field1" required="true" /> </label> <label for="field2"> <span>Email Address</span><input type="email" name="field2" required="true" /> </label> <label for="field3"> <span>Short Subject</span><input type="text" name="field3" required="true" /> </label> <label for="field4"> <span>Message to Us</span><textarea name="field4" onkeyup="adjust_textarea(this)" required="true"></textarea> </label> <label> <span> </span><input type="submit" value="Send Letter" /> </label> </form>
CSS
<style type="text/css"> .form-style-4{ width: 450px; font-size: 16px; background: #495C70; padding: 30px 30px 15px 30px; border: 5px solid #53687E; } .form-style-4 input[type=submit], .form-style-4 input[type=button], .form-style-4 input[type=text], .form-style-4 input[type=email], .form-style-4 textarea, .form-style-4 label { font-family: Georgia, "Times New Roman", Times, serif; font-size: 16px; color: #fff; } .form-style-4 label { display:block; margin-bottom: 10px; } .form-style-4 label > span{ display: inline-block; float: left; width: 150px; } .form-style-4 input[type=text], .form-style-4 input[type=email] { background: transparent; border: none; border-bottom: 1px dashed #83A4C5; width: 275px; outline: none; padding: 0px 0px 0px 0px; font-style: italic; } .form-style-4 textarea{ font-style: italic; padding: 0px 0px 0px 0px; background: transparent; outline: none; border: none; border-bottom: 1px dashed #83A4C5; width: 275px; overflow: hidden; resize:none; height:20px; } .form-style-4 textarea:focus, .form-style-4 input[type=text]:focus, .form-style-4 input[type=email]:focus, .form-style-4 input[type=email] :focus { border-bottom: 1px dashed #D9FFA9; } .form-style-4 input[type=submit], .form-style-4 input[type=button]{ background: #576E86; border: none; padding: 8px 10px 8px 10px; border-radius: 5px; color: #A8BACE; } .form-style-4 input[type=submit]:hover, .form-style-4 input[type=button]:hover{ background: #394D61; } </style>
JS
<script type="text/javascript"> //auto expand textarea function adjust_textarea(h) { h.style.height = "20px"; h.style.height = (h.scrollHeight)+"px"; } </script>

Form Style 5

Originally inspired by a codepen example, this form looks great on similar soft background. I think it is ideal for sign-up forms.
1 Candidate Info
2 Additional Info
HTML
<div class="form-style-5"> <form> <fieldset> <legend><span class="number">1</span> Candidate Info</legend> <input type="text" name="field1" placeholder="Your Name *"> <input type="email" name="field2" placeholder="Your Email *"> <textarea name="field3" placeholder="About yourself"></textarea> <label for="job">Interests:</label> <select id="job" name="field4"> <optgroup label="Indoors"> <option value="fishkeeping">Fishkeeping</option> <option value="reading">Reading</option> <option value="boxing">Boxing</option> <option value="debate">Debate</option> <option value="gaming">Gaming</option> <option value="snooker">Snooker</option> <option value="other_indoor">Other</option> </optgroup> <optgroup label="Outdoors"> <option value="football">Football</option> <option value="swimming">Swimming</option> <option value="fishing">Fishing</option> <option value="climbing">Climbing</option> <option value="cycling">Cycling</option> <option value="other_outdoor">Other</option> </optgroup> </select> </fieldset> <fieldset> <legend><span class="number">2</span> Additional Info</legend> <textarea name="field3" placeholder="About Your School"></textarea> </fieldset> <input type="submit" value="Apply" /> </form> </div>
CSS
<style type="text/css"> .form-style-5{ max-width: 500px; padding: 10px 20px; background: #f4f7f8; margin: 10px auto; padding: 20px; background: #f4f7f8; border-radius: 8px; font-family: Georgia, "Times New Roman", Times, serif; } .form-style-5 fieldset{ border: none; } .form-style-5 legend { font-size: 1.4em; margin-bottom: 10px; } .form-style-5 label { display: block; margin-bottom: 8px; } .form-style-5 input[type="text"], .form-style-5 input[type="date"], .form-style-5 input[type="datetime"], .form-style-5 input[type="email"], .form-style-5 input[type="number"], .form-style-5 input[type="search"], .form-style-5 input[type="time"], .form-style-5 input[type="url"], .form-style-5 textarea, .form-style-5 select { font-family: Georgia, "Times New Roman", Times, serif; background: rgba(255,255,255,.1); border: none; border-radius: 4px; font-size: 15px; margin: 0; outline: 0; padding: 10px; width: 100%; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; background-color: #e8eeef; color:#8a97a0; -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset; box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset; margin-bottom: 30px; } .form-style-5 input[type="text"]:focus, .form-style-5 input[type="date"]:focus, .form-style-5 input[type="datetime"]:focus, .form-style-5 input[type="email"]:focus, .form-style-5 input[type="number"]:focus, .form-style-5 input[type="search"]:focus, .form-style-5 input[type="time"]:focus, .form-style-5 input[type="url"]:focus, .form-style-5 textarea:focus, .form-style-5 select:focus{ background: #d2d9dd; } .form-style-5 select{ -webkit-appearance: menulist-button; height:35px; } .form-style-5 .number { background: #1abc9c; color: #fff; height: 30px; width: 30px; display: inline-block; font-size: 0.8em; margin-right: 4px; line-height: 30px; text-align: center; text-shadow: 0 1px 0 rgba(255,255,255,0.2); border-radius: 15px 15px 15px 0px; } .form-style-5 input[type="submit"], .form-style-5 input[type="button"] { position: relative; display: block; padding: 19px 39px 18px 39px; color: #FFF; margin: 0 auto; background: #1abc9c; font-size: 18px; text-align: center; font-style: normal; width: 100%; border: 1px solid #16a085; border-width: 1px 1px 3px; margin-bottom: 10px; } .form-style-5 input[type="submit"]:hover, .form-style-5 input[type="button"]:hover { background: #109177; } </style>

Form Style 6

It's a simple form with large input fields. It can be used as starting point for your next great form design.

Contact Us

HTML
<div class="form-style-6"> <h1>Contact Us</h1> <form> <input type="text" name="field1" placeholder="Your Name" /> <input type="email" name="field2" placeholder="Email Address" /> <textarea name="field3" placeholder="Type your Message"></textarea> <input type="submit" value="Send" /> </form> </div>
CSS
<style type="text/css"> .form-style-6{ font: 95% Arial, Helvetica, sans-serif; max-width: 400px; margin: 10px auto; padding: 16px; background: #F7F7F7; } .form-style-6 h1{ background: #43D1AF; padding: 20px 0; font-size: 140%; font-weight: 300; text-align: center; color: #fff; margin: -16px -16px 16px -16px; } .form-style-6 input[type="text"], .form-style-6 input[type="date"], .form-style-6 input[type="datetime"], .form-style-6 input[type="email"], .form-style-6 input[type="number"], .form-style-6 input[type="search"], .form-style-6 input[type="time"], .form-style-6 input[type="url"], .form-style-6 textarea, .form-style-6 select { -webkit-transition: all 0.30s ease-in-out; -moz-transition: all 0.30s ease-in-out; -ms-transition: all 0.30s ease-in-out; -o-transition: all 0.30s ease-in-out; outline: none; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; width: 100%; background: #fff; margin-bottom: 4%; border: 1px solid #ccc; padding: 3%; color: #555; font: 95% Arial, Helvetica, sans-serif; } .form-style-6 input[type="text"]:focus, .form-style-6 input[type="date"]:focus, .form-style-6 input[type="datetime"]:focus, .form-style-6 input[type="email"]:focus, .form-style-6 input[type="number"]:focus, .form-style-6 input[type="search"]:focus, .form-style-6 input[type="time"]:focus, .form-style-6 input[type="url"]:focus, .form-style-6 textarea:focus, .form-style-6 select:focus { box-shadow: 0 0 5px #43D1AF; padding: 3%; border: 1px solid #43D1AF; } .form-style-6 input[type="submit"], .form-style-6 input[type="button"]{ box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; width: 100%; padding: 3%; background: #43D1AF; border-bottom: 2px solid #30C29E; border-top-style: none; border-right-style: none; border-left-style: none; color: #fff; } .form-style-6 input[type="submit"]:hover, .form-style-6 input[type="button"]:hover{ background: #2EBC99; } </style>

Form Style 7

It is also inspired by a form example. It looks simple, yet sophisticated with rounded border and small info-box below fields.

Fill Form

  • Enter your full name here
  • Enter a valid email address
  • Your website address (eg: http://www.google.com)
  • Say something about yourself
HTML
<form class="form-style-7"> <ul> <li> <label for="name">Name</label> <input type="text" name="name" maxlength="100"> <span>Enter your full name here</span> </li> <li> <label for="email">Email</label> <input type="email" name="email" maxlength="100"> <span>Enter a valid email address</span> </li> <li> <label for="url">Website</label> <input type="url" name="url" maxlength="100"> <span>Your website address (eg: http://www.google.com)</span> </li> <li> <label for="bio">About You</label> <textarea name="bio" onkeyup="adjust_textarea(this)"></textarea> <span>Say something about yourself</span> </li> <li> <input type="submit" value="Send This" > </li> </ul> </form>
CSS
<style type="text/css"> .form-style-7{ max-width:400px; margin:50px auto; background:#fff; border-radius:2px; padding:20px; font-family: Georgia, "Times New Roman", Times, serif; } .form-style-7 h1{ display: block; text-align: center; padding: 0; margin: 0px 0px 20px 0px; color: #5C5C5C; font-size:x-large; } .form-style-7 ul{ list-style:none; padding:0; margin:0; } .form-style-7 li{ display: block; padding: 9px; border:1px solid #DDDDDD; margin-bottom: 30px; border-radius: 3px; } .form-style-7 li:last-child{ border:none; margin-bottom: 0px; text-align: center; } .form-style-7 li > label{ display: block; float: left; margin-top: -19px; background: #FFFFFF; height: 14px; padding: 2px 5px 2px 5px; color: #B9B9B9; font-size: 14px; overflow: hidden; font-family: Arial, Helvetica, sans-serif; } .form-style-7 input[type="text"], .form-style-7 input[type="date"], .form-style-7 input[type="datetime"], .form-style-7 input[type="email"], .form-style-7 input[type="number"], .form-style-7 input[type="search"], .form-style-7 input[type="time"], .form-style-7 input[type="url"], .form-style-7 input[type="password"], .form-style-7 textarea, .form-style-7 select { box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; width: 100%; display: block; outline: none; border: none; height: 25px; line-height: 25px; font-size: 16px; padding: 0; font-family: Georgia, "Times New Roman", Times, serif; } .form-style-7 input[type="text"]:focus, .form-style-7 input[type="date"]:focus, .form-style-7 input[type="datetime"]:focus, .form-style-7 input[type="email"]:focus, .form-style-7 input[type="number"]:focus, .form-style-7 input[type="search"]:focus, .form-style-7 input[type="time"]:focus, .form-style-7 input[type="url"]:focus, .form-style-7 input[type="password"]:focus, .form-style-7 textarea:focus, .form-style-7 select:focus { } .form-style-7 li > span{ background: #F3F3F3; display: block; padding: 3px; margin: 0 -9px -9px -9px; text-align: center; color: #C0C0C0; font-family: Arial, Helvetica, sans-serif; font-size: 11px; } .form-style-7 textarea{ resize:none; } .form-style-7 input[type="submit"], .form-style-7 input[type="button"]{ background: #2471FF; border: none; padding: 10px 20px 10px 20px; border-bottom: 3px solid #5994FF; border-radius: 3px; color: #D2E2FF; } .form-style-7 input[type="submit"]:hover, .form-style-7 input[type="button"]:hover{ background: #6B9FFF; color:#fff; } </style>
JS
<script type="text/javascript"> //auto expand textarea function adjust_textarea(h) { h.style.height = "20px"; h.style.height = (h.scrollHeight)+"px"; } </script>

Form Style 8

Form fields have with 1 pixel bottom border, and uses Google Font called Open Sans Condensed. This form looks great on dim backgrounds.

Login to your account

HTML
<div class="form-style-8"> <h2>Login to your account</h2> <form> <input type="text" name="field1" placeholder="Full Name" /> <input type="email" name="field2" placeholder="Email" /> <input type="url" name="field3" placeholder="Website" /> <textarea placeholder="Message" onkeyup="adjust_textarea(this)"></textarea> <input type="button" value="Send Message" /> </form> </div>
CSS
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'> <style type="text/css"> .form-style-8{ font-family: 'Open Sans Condensed', arial, sans; width: 500px; padding: 30px; background: #FFFFFF; margin: 50px auto; box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.22); -moz-box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.22); -webkit-box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.22); } .form-style-8 h2{ background: #4D4D4D; text-transform: uppercase; font-family: 'Open Sans Condensed', sans-serif; color: #797979; font-size: 18px; font-weight: 100; padding: 20px; margin: -30px -30px 30px -30px; } .form-style-8 input[type="text"], .form-style-8 input[type="date"], .form-style-8 input[type="datetime"], .form-style-8 input[type="email"], .form-style-8 input[type="number"], .form-style-8 input[type="search"], .form-style-8 input[type="time"], .form-style-8 input[type="url"], .form-style-8 input[type="password"], .form-style-8 textarea, .form-style-8 select { box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; outline: none; display: block; width: 100%; padding: 7px; border: none; border-bottom: 1px solid #ddd; background: transparent; margin-bottom: 10px; font: 16px Arial, Helvetica, sans-serif; height: 45px; } .form-style-8 textarea{ resize:none; overflow: hidden; } .form-style-8 input[type="button"], .form-style-8 input[type="submit"]{ -moz-box-shadow: inset 0px 1px 0px 0px #45D6D6; -webkit-box-shadow: inset 0px 1px 0px 0px #45D6D6; box-shadow: inset 0px 1px 0px 0px #45D6D6; background-color: #2CBBBB; border: 1px solid #27A0A0; display: inline-block; cursor: pointer; color: #FFFFFF; font-family: 'Open Sans Condensed', sans-serif; font-size: 14px; padding: 8px 18px; text-decoration: none; text-transform: uppercase; } .form-style-8 input[type="button"]:hover, .form-style-8 input[type="submit"]:hover { background:linear-gradient(to bottom, #34CACA 5%, #30C9C9 100%); background-color:#34CACA; } </style>
JS
<script type="text/javascript"> //auto expand textarea function adjust_textarea(h) { h.style.height = "20px"; h.style.height = (h.scrollHeight)+"px"; } </script>

Form Style 9

Another beautiful CSS form that works well with dark blue background. But it doesn't have labels, and relies on placeholder. So, if you are worried about older browsers, you can always find alternatives.
HTML
<form class="form-style-9"> <ul> <li> <input type="text" name="field1" class="field-style field-split align-left" placeholder="Name" /> <input type="email" name="field2" class="field-style field-split align-right" placeholder="Email" /> </li> <li> <input type="text" name="field3" class="field-style field-split align-left" placeholder="Phone" /> <input type="url" name="field4" class="field-style field-split align-right" placeholder="Website" /> </li> <li> <input type="text" name="field3" class="field-style field-full align-none" placeholder="Subject" /> </li> <li> <textarea name="field5" class="field-style" placeholder="Message"></textarea> </li> <li> <input type="submit" value="Send Message" /> </li> </ul> </form>
CSS
<style type="text/css"> .form-style-9{ max-width: 450px; background: #FAFAFA; padding: 30px; margin: 50px auto; box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.35); border-radius: 10px; border: 6px solid #305A72; } .form-style-9 ul{ padding:0; margin:0; list-style:none; } .form-style-9 ul li{ display: block; margin-bottom: 10px; min-height: 35px; } .form-style-9 ul li .field-style{ box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; padding: 8px; outline: none; border: 1px solid #B0CFE0; -webkit-transition: all 0.30s ease-in-out; -moz-transition: all 0.30s ease-in-out; -ms-transition: all 0.30s ease-in-out; -o-transition: all 0.30s ease-in-out; }.form-style-9 ul li .field-style:focus{ box-shadow: 0 0 5px #B0CFE0; border:1px solid #B0CFE0; } .form-style-9 ul li .field-split{ width: 49%; } .form-style-9 ul li .field-full{ width: 100%; } .form-style-9 ul li input.align-left{ float:left; } .form-style-9 ul li input.align-right{ float:right; } .form-style-9 ul li textarea{ width: 100%; height: 100px; } .form-style-9 ul li input[type="button"], .form-style-9 ul li input[type="submit"] { -moz-box-shadow: inset 0px 1px 0px 0px #3985B1; -webkit-box-shadow: inset 0px 1px 0px 0px #3985B1; box-shadow: inset 0px 1px 0px 0px #3985B1; background-color: #216288; border: 1px solid #17445E; display: inline-block; cursor: pointer; color: #FFFFFF; padding: 8px 18px; text-decoration: none; font: 12px Arial, Helvetica, sans-serif; } .form-style-9 ul li input[type="button"]:hover, .form-style-9 ul li input[type="submit"]:hover { background: linear-gradient(to bottom, #2D77A2 5%, #337DA8 100%); background-color: #28739E; } </style>

Form Style 10

Form Style 10 looks great on any light background, such as light blue, like green, light yellow etc. It uses Google font called "Bitter" for heading and section titles.

Sign Up Now!Sign up and tell us what you think of the site!

1First Name & Address
2Email & Phone
3Passwords
You agree to our Terms and Policy.
HTML
<div class="form-style-10"> <h1>Sign Up Now!<span>Sign up and tell us what you think of the site!</span></h1> <form> <div class="section"><span>1</span>First Name & Address</div> <div class="inner-wrap"> <label>Your Full Name <input type="text" name="field1" /></label> <label>Address <textarea name="field2"></textarea></label> </div> <div class="section"><span>2</span>Email & Phone</div> <div class="inner-wrap"> <label>Email Address <input type="email" name="field3" /></label> <label>Phone Number <input type="text" name="field4" /></label> </div> <div class="section"><span>3</span>Passwords</div> <div class="inner-wrap"> <label>Password <input type="password" name="field5" /></label> <label>Confirm Password <input type="password" name="field6" /></label> </div> <div class="button-section"> <input type="submit" name="Sign Up" /> <span class="privacy-policy"> <input type="checkbox" name="field7">You agree to our Terms and Policy. </span> </div> </form> </div>
CSS
<link href='http://fonts.googleapis.com/css?family=Bitter' rel='stylesheet' type='text/css'> <style type="text/css"> .form-style-10{ width:450px; padding:30px; margin:40px auto; background: #FFF; border-radius: 10px; -webkit-border-radius:10px; -moz-border-radius: 10px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.13); -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.13); -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.13); } .form-style-10 .inner-wrap{ padding: 30px; background: #F8F8F8; border-radius: 6px; margin-bottom: 15px; } .form-style-10 h1{ background: #2A88AD; padding: 20px 30px 15px 30px; margin: -30px -30px 30px -30px; border-radius: 10px 10px 0 0; -webkit-border-radius: 10px 10px 0 0; -moz-border-radius: 10px 10px 0 0; color: #fff; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.12); font: normal 30px 'Bitter', serif; -moz-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17); -webkit-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17); box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17); border: 1px solid #257C9E; } .form-style-10 h1 > span{ display: block; margin-top: 2px; font: 13px Arial, Helvetica, sans-serif; } .form-style-10 label{ display: block; font: 13px Arial, Helvetica, sans-serif; color: #888; margin-bottom: 15px; } .form-style-10 input[type="text"], .form-style-10 input[type="date"], .form-style-10 input[type="datetime"], .form-style-10 input[type="email"], .form-style-10 input[type="number"], .form-style-10 input[type="search"], .form-style-10 input[type="time"], .form-style-10 input[type="url"], .form-style-10 input[type="password"], .form-style-10 textarea, .form-style-10 select { display: block; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; width: 100%; padding: 8px; border-radius: 6px; -webkit-border-radius:6px; -moz-border-radius:6px; border: 2px solid #fff; box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.33); -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.33); -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.33); } .form-style-10 .section{ font: normal 20px 'Bitter', serif; color: #2A88AD; margin-bottom: 5px; } .form-style-10 .section span { background: #2A88AD; padding: 5px 10px 5px 10px; position: absolute; border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%; border: 4px solid #fff; font-size: 14px; margin-left: -45px; color: #fff; margin-top: -3px; } .form-style-10 input[type="button"], .form-style-10 input[type="submit"]{ background: #2A88AD; padding: 8px 20px 8px 20px; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; color: #fff; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.12); font: normal 30px 'Bitter', serif; -moz-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17); -webkit-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17); box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.17); border: 1px solid #257C9E; font-size: 15px; } .form-style-10 input[type="button"]:hover, .form-style-10 input[type="submit"]:hover{ background: #2A6881; -moz-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.28); -webkit-box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.28); box-shadow: inset 0px 2px 2px 0px rgba(255, 255, 255, 0.28); } .form-style-10 .privacy-policy{ float: right; width: 250px; font: 12px Arial, Helvetica, sans-serif; color: #4D4D4D; margin-top: 10px; text-align: right; } </style>
Below you will find a downloadable Zip file, which contains all 10 form styles ready to be used in your projects. All the best!
Download ZIP
New question is currently disabled!