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 form"
Bootstrap 4.1.1 Snippet by
kmontei4
4.1.1
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
927
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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-lg-6"> <input id="name" class="input-text js-input" type="text" required> <label class="label" for="name">Name</label> </div> <div class="form-field col-lg-6 "> <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-lg-6 "> <input id="company" class="input-text js-input" type="text" required> <label class="label" for="company">Company Name</label> </div> <div class="form-field col-lg-6 "> <input id="phone" class="input-text js-input" type="text" required> <label class="label" for="phone">Contact Number</label> </div> <div class="form-field col-lg-12"> <input id="message" class="input-text js-input" type="text" required> <label class="label" for="message">Message</label> </div> <div class="form-field col-lg-12"> <input class="submit-btn" type="submit" value="Submit"> </div> </form> </section>
.get-in-touch { max-width: 800px; margin: 50px auto; position: relative; } .get-in-touch .title { text-align: center; text-transform: uppercase; letter-spacing: 3px; font-size: 3.2em; line-height: 48px; padding-bottom: 48px; color: #5543ca; background: #5543ca; background: -moz-linear-gradient(left,#f4524d 0%,#5543ca 100%) !important; background: -webkit-linear-gradient(left,#f4524d 0%,#5543ca 100%) !important; background: linear-gradient(to right,#f4524d 0%,#5543ca 100%) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; } .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: #5543ca; 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-size: 18px; line-height: 26px; font-weight: 400; color: #5543ca; cursor: text; 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; background-image: linear-gradient(125deg,#a72879,#064497); color: #fff; text-transform: uppercase; letter-spacing: 2px; font-size: 16px; padding: 8px 16px; border: none; width:200px; cursor: pointer; }
Related:
See More
Free Template
Paper Kit 2
142.4K
51
Contact Form
204.6K
56
Bootstrap Contact Form
109.8K
48
Bootstrap Contact Form
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76