HTML code
Clean, semantic HTML that powers this Bootstrap 3.3.6 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.
Download
<div class="container-fluid main-content bootstrap snippets bootdeys">
<div class="page-title">
<h1>
Chat
</h1>
</div>
<div class="row">
<!-- Conversation -->
<div class="col-lg-12">
<div class="widget-container scrollable chat chat-page">
<div class="contact-list">
<div class="heading">
Contacts (15)<i class="fa fa-plus pull-right"></i>
</div>
<ul>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.png">Walter White<i class="fa fa-circle text-danger"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female2.png">Jessie Pinkman<i class="fa fa-circle text-success"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">Skyler White<i class="fa fa-circle text-warning"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.png">Flynn White<i class="fa fa-circle text-danger"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female2.png">Hank Schrader<i class="fa fa-circle text-muted"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">Marie Schrader<i class="fa fa-circle text-success"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.png">Steve Gomez<i class="fa fa-circle text-warning"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female2.png">Saul Goodman<i class="fa fa-circle text-success"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">Mike Ehrmantraut<i class="fa fa-circle text-success"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.png">Gustavo Fring<i class="fa fa-circle text-muted"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female2.png">Skinny Pete<i class="fa fa-circle text-muted"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">Badger<i class="fa fa-circle text-success"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.png">Gale Boetticher<i class="fa fa-circle text-warning"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female2.png">Huell<i class="fa fa-circle text-muted"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">Ted Beneke<i class="fa fa-circle text-success"></i></a>
</li>
<li>
<a href="#"><img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.png">Bogdan Wolynetz<i class="fa fa-circle text-warning"></i></a>
</li>
</ul>
</div>
<div class="heading">
<i class="fa fa-comments"></i>Chat with <a href="#">John Smith</a><i class="fa fa-cog pull-right"></i><i class="fa fa-smile-o pull-right"></i>
</div>
<div class="widget-content padded">
<ul>
<li>
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">
<div class="bubble">
<a class="user-name" href="#">John Smith</a>
<p class="message">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li class="current-user">
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.jpg">
<div class="bubble">
<a class="user-name" href="#">Jane Smith</a>
<p class="message">
Donec odio. Quisque volutpat mattis eros.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li>
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">
<div class="bubble">
<a class="user-name" href="#">John Smith</a>
<p class="message">
Sed egestas, ante et vulputate volutpat, eros pede semper est, vitae luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, commodo quis, gravida id, est. Sed lectus. Praesent elementum hendrerit tortor. Sed semper lorem at felis. Vestibulum volutpat, lacus a ultrices sagittis, mi neque euismod dui, eu pulvinar nunc sapien ornare nisl.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li>
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">
<div class="bubble">
<a class="user-name" href="#">John Smith</a>
<p class="message">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li class="current-user">
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.jpg">
<div class="bubble">
<a class="user-name" href="#">Jane Smith</a>
<p class="message">
Morbi interdum mollis sapien. Sed ac risus. Phasellus lacinia, magna a ullamcorper laoreet, lectus arcu pulvinar risus, vitae facilisis libero dolor a purus. Sed vel lacus. Mauris nibh felis, adipiscing varius, adipiscing in, lacinia vel, tellus. Suspendisse ac urna. Etiam pellentesque mauris ut lectus. Nunc tellus ante, mattis eget, gravida vitae, ultricies ac, leo.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li>
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">
<div class="bubble">
<a class="user-name" href="#">John Smith</a>
<p class="message">
Donec odio. Quisque volutpat mattis eros.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li class="current-user">
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.jpg">
<div class="bubble">
<a class="user-name" href="#">Jane Smith</a>
<p class="message">
Suspendisse mauris. Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehicula. Integer adipiscing risus a sem. Nullam quis massa sit amet nibh viverra malesuada.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li class="current-user">
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.jpg">
<div class="bubble">
<a class="user-name" href="#">Jane Smith</a>
<p class="message">
Ut convallis, sem sit amet interdum consectetuer, odio augue aliquam leo, nec dapibus tortor nibh sed augue. Integer eu magna sit amet metus fermentum posuere. Morbi sit amet nulla sed dolor elementum imperdiet. Quisque fermentum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque adipiscing eros ut libero. Ut condimentum mi vel tellus. Suspendisse laoreet.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li>
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">
<div class="bubble">
<a class="user-name" href="#">John Smith</a>
<p class="message">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li class="current-user">
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-female.jpg">
<div class="bubble">
<a class="user-name" href="#">Jane Smith</a>
<p class="message">
Sem sit amet interdum consectetuer, odio augue aliquam leo, nec dapibus tortor nibh sed augue. Integer eu magna sit amet metus fermentum posuere. Morbi sit amet nulla sed dolor elementum imperdiet. Quisque fermentum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
<li>
<img width="30" height="30" src="http://andrewreifman.com/se7en/images/avatar-male.jpg">
<div class="bubble">
<a class="user-name" href="#">John Smith</a>
<p class="message">
Consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros.
</p>
<p class="time">
<strong>Today </strong>3:53 pm
</p>
</div>
</li>
</ul>
</div>
<div class="post-message">
<input class="form-control" placeholder="Write your message here…" type="text"><input type="submit" value="Send">
</div>
</div>
</div>
</div>
</div>CSS code
Scoped CSS that styles the component. Paste it after Bootstrap 3.3.6 to keep the design, spacing, and responsiveness consistent.
Download
body{
margin-top:20px;
background:#ddd;
}
.main-content {
padding-bottom: 20px; }
.chat {
padding-bottom: 52px; }
.chat .widget-content {
padding-right: 20px;
background-color: white; }
.chat .widget-content .scrollbar-path-vertical {
bottom: 56px !important; }
.chat .widget-content ul {
list-style: none;
padding: 0; }
.chat .widget-content ul li {
margin-bottom: 14px;
padding-left: 40px;
padding-right: 80px;
position: relative; }
.chat .widget-content ul li:last-child {
margin-bottom: 0; }
.chat .widget-content ul li img {
position: absolute;
bottom: -2px;
left: 0;
border-radius: 50%; }
.chat .widget-content ul li .bubble {
padding: 12px 15px;
background: #e5e5ea;
border-radius: 15px;
position: relative; }
.chat .widget-content ul li .bubble:after {
content: "";
position: absolute;
bottom: 0;
left: -5px;
background: url("http://andrewreifman.com/se7en/images/chat-left.png") left top no-repeat;
width: 13px;
height: 13px;
display: block; }
@media (min--moz-device-pixel-ratio: 1.3), (-o-min-device-pixel-ratio: 2.6 / 2), (-webkit-min-device-pixel-ratio: 1.3), (min-device-pixel-ratio: 1.3), (min-resolution: 1.3dppx) {
.chat .widget-content ul li .bubble:after {
background-image: url("http://andrewreifman.com/se7en/images/[email protected]");
background-size: 13px 13px; } }
.chat .widget-content ul li .bubble .user-name {
font-size: 1.1em;
margin-bottom: 8px;
display: inline-block; }
.chat .widget-content ul li .bubble p.message {
font-size: 0.95em;
margin-bottom: 12px;
color: #333333; }
.chat .widget-content ul li .bubble .time {
font-size: 0.8em;
color: #888888;
margin-bottom: 0; }
.chat .widget-content ul li.current-user {
padding-right: 40px;
padding-left: 80px; }
.chat .widget-content ul li.current-user img {
right: 0;
left: auto; }
.chat .widget-content ul li.current-user .bubble {
background: #178efe; }
.chat .widget-content ul li.current-user .bubble:after {
background: url("http://andrewreifman.com/se7en/images/chat-right.png") left top no-repeat;
left: auto;
right: -6px; }
@media (min--moz-device-pixel-ratio: 1.3), (-o-min-device-pixel-ratio: 2.6 / 2), (-webkit-min-device-pixel-ratio: 1.3), (min-device-pixel-ratio: 1.3), (min-resolution: 1.3dppx) {
.chat .widget-content ul li.current-user .bubble:after {
background-image: url("http://andrewreifman.com/se7en/images/[email protected]");
background-size: 13px 13px; } }
.chat .widget-content ul li.current-user p, .chat .widget-content ul li.current-user a {
color: white !important; }
.chat .widget-content ul li.current-user .time {
opacity: 0.75; }
.chat .post-message {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 52px;
padding: 8px 60px 8px 8px;
background: #f2f2f2;
border-top: 1px solid #cccccc; }
.chat .post-message input[type="text"] {
width: 100%;
height: 100%; }
.chat .post-message input[type="submit"] {
position: absolute;
top: 12px;
right: 10px;
margin: 0;
border: 0;
background: transparent;
color: #007aff;
font-weight: 600;
font-size: 14px; }
.widget-container.chat-page {
height: 700px;
padding: 0 0 102px 222px;
position: relative;
background-color: #f2f2f2; }
.widget-container.chat-page .contact-list {
position: absolute;
top: 0;
left: 0;
width: 222px;
height: 100%;
border-right: 1px solid #dddddd;
padding-top: 50px; }
.widget-container.chat-page .contact-list .heading {
background-color: transparent;
color: #777777;
border-bottom: 1px solid #d6d6d6;
font-size: 16px;
padding-top: 12px;
padding-bottom: 14px;
background-color: #f2f2f2;
position: absolute;
top: 0;
left: 0;
width: 100%; }
.widget-container.chat-page .contact-list .heading i {
margin-top: 4px;
font-size: 1em; }
.widget-container.chat-page .contact-list ul {
list-style: none;
padding-left: 15px;
margin: 0;
overflow-y: auto;
overflow-x: hidden;
height: 100%; }
.widget-container.chat-page .contact-list ul li {
border-bottom: 1px solid #d6d6d6;
margin: 0; }
.widget-container.chat-page .contact-list ul li a {
display: block;
position: relative;
left: -15px;
width: 220px;
padding-left: 15px;
padding: 8px 0 8px 15px;
color: #888888; }
.widget-container.chat-page .contact-list ul li a:hover {
background-color: #e6e6e6;
color: #666666; }
.widget-container.chat-page .contact-list ul li img {
border-radius: 50%;
margin-right: 10px; }
.widget-container.chat-page .contact-list ul li i {
font-size: 12px;
float: right;
margin: 9px 20px 0 0; }
.widget-container.chat-page > .heading {
position: relative !important; }
.widget-container.chat-page .post-message {
position: relative; }FAQ
How do I use this snippet?
Include Bootstrap 3.3.6, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.
Can I use it in commercial projects?
Yes. It’s free for personal and commercial work; check the snippets license for details.
Is it responsive?
Yes. It inherits the responsive grid and components from Bootstrap 3.3.6.

About this bootstrap example/template
This free Bootstrap 3.3.6 snippet, blue chat, was published on Mar 10th 2016, 23:41 by Bootdey Admin.
Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.
Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.
Already trusted in 1.4K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.
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