Bootstrap snippet and html example. write your message contact form

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.
Tags: contact,form

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 5.2.0 included, to get the result that you can see in the preview selection

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<section id="contact" class="contact_us section-padding">
	<div class="container">
		<div class="row">
			<div class="col-lg-8 col-sm-12 col-xs-12">
				<div class="contact">
					<h4>Write Your Message </h4>
					<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
					<form class="form" name="enq" method="post" action="contact.php" onsubmit="return validation();">
						<div class="row">
							<div class="form-group col-md-6">
								<input type="text" name="name" class="form-control" placeholder="Name" required="required">
							</div>
							<div class="form-group col-md-6">
								<input type="email" name="email" class="form-control" placeholder="Email" required="required">
							</div>
							<div class="form-group col-md-12">
								<input type="text" name="subject" class="form-control" placeholder="Subject" required="required">
							</div>
							<div class="form-group col-md-12">
								<textarea rows="6" name="message" class="form-control" placeholder="Your Message" required="required"></textarea>
							</div>
							<div class="col-md-12 text-center">
								<button type="submit" value="Send message" name="submit" id="submitButton" class="btn btn-lg contact_btn" title="Submit Your Message!">Touch here</button>
							</div>
						</div>
					</form>
				</div>
			</div><!-- END COL  -->	
			<div class="col-lg-4 col-sm-12 col-xs-12">	
				<div class="address_bg">
					<div class="single_address">
						<div class="address_br"><span class="fa fa-map"></span></div>
						<h4>Address</h4>
						<p>3481 Melrose Place, Beverly Hills</p>
					</div>							
					<div class="single_address">
						<div class="address_br"><span class="fa fa-mobile"></span></div>
						<h4>Phone</h4>
						<p>+512 513 96324</p>
					</div>	
					<div class="single_address">
						<div class="address_br"><span class="fa fa-envelope"></span></div>
						<h4>Email</h4>
						<p>[email protected]</p>
					</div>
					<div class="single_address">
						<div class="address_br"><span class="fa fa-clock-o"></span></div>
						<h4>Working Hours</h4>
						<p>Mon to Sat 9:00am to 5:00pm</p>
					</div>
				</div>
			</div><!-- END COL  -->					
		</div><!-- END ROW -->
	</div><!-- END CONTAINER -->
</section>

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 5.2.0 included, to get the result that you can see in the preview selection

body{margin-top:20px;}
.contact_us{background:#fffaf1;}
.contact {margin-right:30px;}
@media only screen and (max-width:768px) { 
.contact {margin-bottom:60px;margin-right:0px;}
}
.contact h4 {font-weight: 700;font-size: 40px;}
.contact p {
margin-bottom:40px;
}
.contact input {
    background: #fff;
	border: 2px rgba(27,194,108,0.08);
	border-radius: 0px;
	box-shadow: none;
	color: #1d293e;
	font-size: 16px;
	font-weight: 400;
	height: 70px;
	padding: 10px 10px 10px 30px;
	width: 100%;
	border: 1px solid #e9e6e6;
}
.contact textarea {
	background: #fff;
	border: 2px rgba(27,194,108,0.08);
	border-radius: 0px;
	box-shadow: none;
	color: #1d293e;
	font-size: 16px;
	font-weight: 400;
	padding: 10px 10px 10px 30px;
	width: 100%;
	border: 1px solid #e9e6e6;
}
.contact input:focus {
	border: 1px solid #554c86 ;
    box-shadow: none;
    outline: 0 none;
}
.contact textarea:focus {
border: 1px solid #554c86 ;
    box-shadow: none;
    outline: 0 none;
}
.contact button {
	width: 100%;
	font-size: 16px;
}

.address_bg {
	background: #fff;
	padding: 40px;
	box-shadow: 0 10px 40px -10px rgba(0,64,128,.1);
	border-radius: 3px;
}
.single_address {
	margin-bottom: 30px;
	border-bottom: 1px solid #eee;
	padding-bottom: 30px;
}
.single_address:last-child {
	border-bottom: 0px;
	margin-bottom: 0;
	padding-bottom: 0px;
}
@media only screen and (max-width:768px) { 
.single_address{margin-bottom: 70px;}
}
.address_br{
float:left;
}
.single_address span {
	color: #554c86;
	font-size: 30px;
	margin-bottom: 20px;
	display: block;
	margin-right:20px;
}
.single_address h4 {
	font-weight: 600;
	font-size: 18px;
	overflow: hidden;
	
}
.single_address p{overflow: hidden;}
.contact_btn {
	background: #554c86;
	padding: 10px;
	color: #fff;
	text-transform: capitalize;
	-webkit-transition: 0.3s;
	transition: 0.3s;
}
.contact_btn:hover{background:#0aa1d6;color: #fff;}


.map{}
.map iframe{
width:100%;
height:500px;
margin-bottom: -8px;
}

.form-group {
    margin-bottom: 1rem;
}

Similar snippets

Bootstrap example and template. Get in Touch form

Get in Touch form

Bootstrap example and template. Create new customer form

Create new customer form

Bootstrap example and template. new contacts widget

new contacts widget

Bootstrap example and template. Login form with background image

Login form with background image

Bootstrap example and template. direct chat box

direct chat box

Bootstrap example and template. animated chat window

animated chat window

Bootstrap example and template. messages chat with tabs

messages chat with tabs

Bootstrap example and template. Faq page list

Faq page list

Bootstrap example and template. write your message contact form

About this bootstrap example/template

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 430 views, Using this bootstrap snippet you have the following benefits:

Bootstrap 5.2.0

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 5.2.0 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