Professional design chat box example using bootstrap. and you can easy implement in your project. also you can display multiple chat box in single screen. In chat box display message with time and user image.

you can get code of bootstrap chat box example snippet. we give you example of how to create a chat box in html , you can simple copy bellow code and use in your project. If it free snippets of css chat box code So you have to simple get those bellow code from tab of html, css and js. you simple click on HTML Code then you will get html code html chat box code snippets, click on JS Code tab get code of jquery codd for chat box html code free download snippets, same as for CSS Code tab. It's pretty easy and simple example of chat box for website snippet.


<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <div class="main-section"> <div class="row border-chat"> <div class="col-md-12 col-sm-12 col-xs-12 first-section"> <div class="row"> <div class="col-md-8 col-sm-6 col-xs-6 left-first-section"> <p>Chat</p> </div> <div class="col-md-4 col-sm-6 col-xs-6 right-first-section"> <a href="#"><i class="fa fa-minus" aria-hidden="true"></i></a> <a href="#"><i class="fa fa-clone" aria-hidden="true"></i></a> <a href="#"><i class="fa fa-times" aria-hidden="true"></i></a> </div> </div> </div> </div> <div class="row border-chat"> <div class="col-md-12 col-sm-12 col-xs-12 second-section"> <div class="chat-section"> <ul> <li> <div class="left-chat"> <img src="/demo/man01.png"> <p>Lorem ipsum dolor sit ameeserunt. </p> <span>2 min</span> </div> </li> <li> <div class="right-chat"> <img src="/demo/man02.png"> <p>Lorem ipsum dolor sit ameeserunt.</p> <span>2 min</span> </div> </li> <li> <div class="left-chat"> <img src="/demo/man01.png"> <p>Lorem ipsum dolor sit ameeserunt.</p> <span>2 min</span> </div> </li> <li> <div class="right-chat"> <img src="/demo/man02.png"> <p>Lorem ipsum dolor sit ameeserunt.</p> <span>2 min</span> </div> </li> <li> <div class="left-chat"> <img src="/demo/man01.png"> <p>Lorem ipsum dolor sit ameeserunt.</p> <span>2 min</span> </div> </li> <li> <div class="right-chat"> <img src="/demo/man02.png"> <p>Lorem ipsum dolor sit ameeserunt.</p> <span>2 min</span> </div> </li> <li> <div class="left-chat"> <img src="/demo/man01.png"> <p>Lorem ipsum dolor sit ameeserunt.</p> <span>2 min</span> </div> </li> <li> <div class="right-chat"> <img src="/demo/man02.png"> <p>Lorem ipsum dolor sit ameeserunt.</p> <span>2 min</span> </div> </li> </ul> </div> </div> </div> <div class="row border-chat"> <div class="col-md-12 col-sm-12 col-xs-12 third-section"> <div class="text-bar"> <input type="text" placeholder="Write messege"><a href="#"><i class="fa fa-arrow-right" aria-hidden="true"></i></a> </div> </div> </div> </div> </body> </html>
.main-section{ width: 300px; position: fixed; right:50px; bottom:-350px; } .first-section:hover{ cursor: pointer; } .open-more{ bottom:0px; transition:2s; } .border-chat{ border:1px solid #FD8468; margin: 0px; } .first-section{ background-color:#FD8468; } .first-section p{ color:#fff; margin:0px; padding: 10px 0px; } .first-section p:hover{ color:#fff; cursor: pointer; } .right-first-section{ text-align: right; } .right-first-section i{ color:#fff; font-size: 15px; padding: 12px 3px; } .right-first-section i:hover{ color:#fff; } .chat-section ul li{ list-style: none; margin-top:10px; position: relative; } .chat-section{ overflow-y:scroll; height:300px; } .chat-section ul{ padding: 0px; } .left-chat img,.right-chat img{ width:50px; height:50px; float:left; margin:0px 10px; } .right-chat img{ float:right; } .second-section{ padding: 0px; margin: 0px; background-color: #F3F3F3; height: 300px; } .left-chat,.right-chat{ overflow: hidden; } .left-chat p,.right-chat p{ background-color:#FD8468; padding: 10px; color:#fff; border-radius: 5px; float:left; width:60%; margin-bottom:20px; } .left-chat span,.right-chat span{ position: absolute; left:70px; top:60px; color:#B7BCC5; } .right-chat span{ left:45px; } .right-chat p{ float:right; background-color: #FFFFFF; color:#FD8468; } .third-section{ border-top: 1px solid #EEEEEE; } .text-bar input{ width:90%; margin-left:-15px; padding:10px 10px; border:1px solid #fff; } .text-bar a i{ background-color:#FD8468; color:#fff; width:30px; height:30px; padding:7px 0px; border-radius: 50%; text-align: center; } .left-chat:before{ content: " "; position:absolute; top:0px; left:55px; bottom:150px; border:15px solid transparent; border-top-color:#FD8468; } .right-chat:before{ content: " "; position:absolute; top:0px; right:55px; bottom:150px; border:15px solid transparent; border-top-color:#fff; }
$(document).ready(function(){ $(".left-first-section").click(function(){ $('.main-section').toggleClass("open-more"); }); }); $(document).ready(function(){ $(".fa-minus").click(function(){ $('.main-section').toggleClass("open-more"); }); });

Please Subscribe Your Email Address, We Will Notify You When Add New Snippet:





Related Post

Our team section layout design in bootstrap

Our team section layout design in bootstrap

Ready Code of Our team section layout design in bootstrap css framework

Read More
Bootstrap round shape step by step wizard

Bootstrap round shape step by step wizard

Simple Step by step tab using css and Bootstrap framework

Read More
How to create custom with stylish bootstrap step tabs

How to create custom with stylish bootstrap step tabs

Bootstrap step example using custom js and css with stylish design. you can g...

Read More

Random Post