HTML code
This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 3.3.6 included, to get the result that you can see in the preview selection
Download<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container bootstrap snippets bootdeys">
<div class="row text-center">
<div class="col-sm-4">
<div class="contact-detail-box">
<i class="fa fa-th fa-3x text-colored"></i>
<h4>Get In Touch</h4>
<abbr title="Phone">P:</abbr> (123) 456-7890<br>
E: <a href="mailto:[email protected]" class="text-muted">[email protected]</a>
</div>
</div><!-- end col -->
<div class="col-sm-4">
<div class="contact-detail-box">
<i class="fa fa-map-marker fa-3x text-colored"></i>
<h4>Our Location</h4>
<address>
795 Folsom Ave, Suite 600<br>
San Francisco, CA 94107<br>
</address>
</div>
</div><!-- end col -->
<div class="col-sm-4">
<div class="contact-detail-box">
<i class="fa fa-book fa-3x text-colored"></i>
<h4>24x7 Support</h4>
<p>Industry's standard dummy text.</p>
<h4 class="text-muted">1234 567 890</h4>
</div>
</div><!-- end col -->
</div>
<!-- end row -->
<div class="row">
<div class="col-sm-6">
<div class="contact-map">
<iframe src="https://www.google.com/maps/embed/v1/place?q=New+York+University&key=AIzaSyBSFRN6WWGYwmFi498qXXsD2UwkbmD74v4" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" style="width: 100%; height: 360px;"></iframe>
</div>
</div><!-- end col -->
<!-- Contact form -->
<div class="col-sm-6">
<form role="form" name="ajax-form" id="ajax-form" action="https://formsubmit.io/send/[email protected]" method="post" class="form-main">
<div class="form-group">
<label for="name2">Name</label>
<input class="form-control" id="name2" name="name" onblur="if(this.value == '') this.value='Name'" onfocus="if(this.value == 'Name') this.value=''" type="text" value="Name">
<div class="error" id="err-name" style="display: none;">Please enter name</div>
</div> <!-- /Form-name -->
<div class="form-group">
<label for="email2">Email</label>
<input class="form-control" id="email2" name="email" type="text" onfocus="if(this.value == 'E-mail') this.value='';" onblur="if(this.value == '') this.value='E-mail';" value="E-mail">
<div class="error" id="err-emailvld" style="display: none;">E-mail is not a valid format</div>
</div> <!-- /Form-email -->
<div class="form-group">
<label for="message2">Message</label>
<textarea class="form-control" id="message2" name="message" rows="5" onblur="if(this.value == '') this.value='Message'" onfocus="if(this.value == 'Message') this.value=''">Message</textarea>
<div class="error" id="err-message" style="display: none;">Please enter message</div>
</div> <!-- /col -->
<div class="row">
<div class="col-xs-12">
<div id="ajaxsuccess" class="text-success">E-mail was successfully sent.</div>
<div class="error" id="err-form" style="display: none;">There was a problem validating the form please check!</div>
<div class="error" id="err-timedout">The connection to the server timed out!</div>
<div class="error" id="err-state"></div>
<button type="submit" class="btn btn-primary btn-shadow btn-rounded w-md" id="send">Submit</button>
</div> <!-- /col -->
</div> <!-- /row -->
</form> <!-- /form -->
</div> <!-- end col -->
</div> <!-- end row -->
</div>
CSS code
This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 3.3.6 included, to get the result that you can see in the preview selection
Downloadbody{margin-top:20px;}
/*======= Contact ======*/
.form-control {
box-shadow: none !important;
outline: none !important;
border: 2px solid #cecece;
height: 38px;
}
.form-control:hover ,.form-control:focus{
border-color: #97a0af;
}
.error {
margin: 8px 0px;
display: none;
color: red;
}
#ajaxsuccess {
font-size: 16px;
width: 100%;
display: none;
clear: both;
margin: 8px 0px;
}
.con_sub_text {
margin: 20px 0px;
font-size: 15px;
}
.contact-detail-box {
margin-bottom: 50px;
}
.contact-detail-box address {
font-size: 14px;
}
.contact-map {
background-color: #ededed;
}
.title-box .border,.btn-primary,.back-to-top,
.logo i,.question-q-box,.social-circle li a:hover {
background-color: #f16000 !important;
}
.title-box .title-alt,.text-colored,.footer a:hover,
.navbar-custom .navbar-nav li a:hover,
.navbar-custom .navbar-nav li a:focus,
.navbar-custom .navbar-nav li a:active,
.navbar-custom .navbar-nav li.active a {
color: #f16000;
}
.btn-primary {
border: 1px solid #f16000 !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.focus,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover,
.open > .dropdown-toggle.btn-primary,
.btn-primary.active.focus, .btn-primary.active:focus,
.btn-primary.active:hover, .btn-primary:active.focus,
.btn-primary:active:focus, .btn-primary:active:hover,
.open>.dropdown-toggle.btn-primary.focus,
.open>.dropdown-toggle.btn-primary:focus,
.open>.dropdown-toggle.btn-primary:hover {
background-color: #d85600 !important;
border: 1px solid #d85600 !important;
}
.btn-shadow.btn-primary {
box-shadow: 1px 5px 9px rgba(241, 96, 1, 0.32);
}
/*======= Responsive ======*/
@media (min-width: 768px) {
.nav-custom-left {
margin-left: 5%;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.contact-page .col-sm-6 {
padding-left: 30px;
padding-right: 30px;
}
}
@media (max-width: 768px) {
.navbar-custom {
-moz-box-shadow: 0 2px 2px rgba(0,0,0,.1);
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,.1);
box-shadow: 0 2px 2px rgba(0,0,0,.1);
}
.screen-space {
margin: 0px auto 50px auto;
}
.feature-detail {
padding: 0px 0px 50px 30px !important;
}
.footer h5 {
margin-top: 30px;
}
}
@media only screen and (min-width: 768px) and (max-width: 991px){
.blog-wrapper .blog-item {
width: 50%;
}
.navbar-custom .navbar-nav li a {
font-size: 12px;
}
.blog-detail-box {
padding-right: 0px;
}
}
@media only screen and (min-width: 767px) and (max-width: 991px){
}
@media (max-width: 767px) {
.blog-wrapper .blog-item {
width: 100%;
}
.logo {
margin-top: 7px;
}
.blog-detail-box {
padding-right: 0px;
}
}
About this bootstrap example/template
This example/template, Contact page section, was published on Apr 14th 2016, 09:38 by Bootdey Admin and it is free.
We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.
We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.
This code example currectly have 12.1K views, Using this bootstrap snippet you have the following benefits:
Bootstrap 3.3.6
<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'>
<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'></script>
This code example is based on bootstrap 3.3.6 and the grid system of this framework
Responsive
Based on bootstrap framework makes all the layouts perfectly responsive for all devices
Crossbrowser compatibility
Tested on all major browsers, it works smoothly on all of them
semantic html 5
Built on html / css3 the code quality is really amazing
Simple Integration
This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working