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
"contact"
Bootstrap 3.0.0 Snippet by
evarevirus
3.0.0
contact
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
9.7K
 
4 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 ----------> <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>
@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; }
$( '.js-input' ).keyup(function() { if( $(this).val() ) { $(this).addClass('not-empty'); } else { $(this).removeClass('not-empty'); } });
Related:
See More
Template
Argon Dashboard PRO
142.1K
51
Contact Form
204.0K
56
Bootstrap Contact Form
109.5K
48
Bootstrap Contact Form
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76