"Sticky Contact Form for Bootstrap"
Bootstrap 3.3.0 Snippet by megatela

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 ---------->
<div class="container">
<div class="row">
<h2>Sticky Contact Form for Bootstrap</h2>
<!-- Form -->
<div class="nb-form">
<p class="title">Send a message</p>
<img src="https://lh3.googleusercontent.com/-LvTWzTOL4c0/V2yhfueroyI/AAAAAAAAGZM/Ebwt4EO4YlIc03tw8wVsGrgoOFGgAsu4wCEw/w140-h140-p/43bf8578-86b8-4c1c-86a6-a556af8fba13" alt="" class="user-icon">
<p class="message">This is an awesome example of sticky contact form on right bottom of the page</p>
<form>
<input type="text" name="cpname" placeholder="Name:" required>
<input type="email" name="cpemail" placeholder="Email:" required>
<input type="tel" name="cpphone" placeholder="Phone:" required>
<textarea name="cpmessage" placeholder="Message:" required></textarea>
<input type="submit" value="Send message">
</form>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*------------- Form ---------------*/
.nb-form {
position: fixed;
z-index: 9999;
width: 300px;
background: #FFF;
right: 20px;
bottom: -367px;
transition: all .8s cubic-bezier(.22, .67, .43, 1.22) .2s;
border-radius: 10px 10px 0 0;
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.2);
}
.nb-form:hover {
bottom: 0px;
}
/*-- User Icon --*/
.nb-form .user-icon {
position: absolute;
top: -49px;
right: 12px;
display: block;
width: 58px;
margin: 20px auto 15px;
border-radius: 100%;
}
/*-- Title --*/
.nb-form .title {
background: #03a9f4;
font-size: 16px !important;
padding: 20px 18px !important;
color: #fff !important;
border-radius: 10px 10px 0 0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: