Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"form"
Bootstrap 3.0.0 Snippet by
evarevirus
3.0.0
Preview
HTML
View Full Screen
Fork
Fork this
4.0K
 
3 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/ainarela/pen/XXZymN?limit=all&page=18&q=form" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'> <style class="cp-pen-styles">@import url(https://fonts.googleapis.com/css?family=Raleway:300); @import url(https://fonts.googleapis.com/css?family=Lusitana:400,700); .align-center { text-align: center; } html { height: 100%; } body { height: 100%; position: relative; } .row { margin: -20px 0; } .row:after { content: ""; display: table; clear: both; } .row .col { padding: 0 20px; float: left; box-sizing: border-box; } .row .col.x-50 { width: 50%; } .row .col.x-100 { width: 100%; } .content-wrapper { min-height: 100%; position: relative; } .get-in-touch { max-width: 650px; margin: 0 auto; position: relative; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .get-in-touch .title { text-align: center; font-family: Raleway, sans-serif; text-transform: uppercase; letter-spacing: 3px; font-size: 36px; line-height: 48px; padding-bottom: 48px; } .contact-form .form-field { position: relative; margin: 32px 0; } .contact-form .input-text { display: block; width: 100%; height: 36px; border-width: 0 0 2px 0; border-color: #000; font-family: Lusitana, serif; font-size: 18px; line-height: 26px; font-weight: 400; } .contact-form .input-text:focus { outline: none; } .contact-form .input-text:focus + .label, .contact-form .input-text.not-empty + .label { -webkit-transform: translateY(-24px); transform: translateY(-24px); } .contact-form .label { position: absolute; left: 20px; bottom: 11px; font-family: Lusitana, serif; font-size: 18px; line-height: 26px; font-weight: 400; color: #888; cursor: text; -webkit-transition: -webkit-transform .2s ease-in-out; transition: -webkit-transform .2s ease-in-out; transition: transform .2s ease-in-out; transition: transform .2s ease-in-out, -webkit-transform .2s ease-in-out; } .contact-form .submit-btn { display: inline-block; background-color: #000; color: #fff; font-family: Raleway, sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: 16px; line-height: 24px; padding: 8px 16px; border: none; cursor: pointer; } .note { position: absolute; left: 0; bottom: 10px; width: 100%; text-align: center; font-family: Lusitana, serif; font-size: 16px; line-height: 21px; } .note .link { color: #888; text-decoration: none; } .note .link:hover { text-decoration: underline; } </style></head><body> <section class="get-in-touch"> <h1 class="title">Get in touch</h1> <form class="contact-form row"> <div class="form-field col x-50"> <input id="name" class="input-text js-input" type="text" required> <label class="label" for="name">Name</label> </div> <div class="form-field col x-50"> <input id="email" class="input-text js-input" type="email" required> <label class="label" for="email">E-mail</label> </div> <div class="form-field col x-100"> <input id="message" class="input-text js-input" type="text" required> <label class="label" for="message">Message</label> </div> <div class="form-field col x-100 align-center"> <input class="submit-btn" type="submit" value="Submit"> </div> </form> </section> <p class="note">Based on <a class="link" href="http://redcollar.digital/contacts/" target="blank">Red Collar Contact Form</a>.</p> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script >$( '.js-input' ).keyup(function() { if( $(this).val() ) { $(this).addClass('not-empty'); } else { $(this).removeClass('not-empty'); } }); //# sourceURL=pen.js </script> </body></html>
Related:
See More
Template
Get Shit Done Pro
463.5K
45
login-form
170.8K
18
Login Form
142.1K
51
Contact Form
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76