Bootstrap snippet and html example. blue chat widget

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: chat,user

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


<div class="col-md-6 bootstrap snippets bootdey">
            <div class="widget-container scrollable chat">
              <div class="heading">
                <i class="fa fa-comments"></i>Chat Widget<i class="fa fa-smile 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">
                        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>
                    <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>
                </ul>
              </div>
              <div class="post-message">
                <input class="form-control" placeholder="Write your message here…" type="text"><input class="btn btn-primary" type="submit" value="Post">
              </div>
            </div>
          </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



body{margin-top:20px;}

.widget-container {
  min-height: 320px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
  .widget-container.fluid-height {
    height: auto;
    min-height: 0; }
  .widget-container.small {
    min-height: 120px;
    height: 200px; }
  .widget-container.gallery {
    min-height: 400px; }
  .widget-container .heading {
    background: rgba(255, 255, 255, 0.94);
    height: 50px;
    padding: 15px 15px;
    color: #007aff;
    font-size: 15px;
    width: 100%;
    font-weight: 400;
    margin: 0; }
    .widget-container .heading [class^="fa"], .widget-container .heading [class*="fa"] {
      margin-right: 10px;
      font-size: 14px; }
      .widget-container .heading [class^="fa"].pull-right, .widget-container .heading [class*="fa"].pull-right {
        margin-right: 0px;
        margin-left: 15px;
        opacity: 0.35;
        font-size: 1.1em; }
      .widget-container .heading [class^="fa"]:hover, .widget-container .heading [class*="fa"]:hover {
        cursor: pointer;
        opacity: 1; }
  .widget-container .tabs {
    background: whitesmoke;
    border-bottom: 1px solid #dddddd; }
  .widget-container .widget-content {
    width: 100%; }
  .widget-container.scrollable {
    position: relative;
    height: 400px;
    padding-top: 50px; }
    .widget-container.scrollable.chat-home {
      height: 427px; }
    .widget-container.scrollable .heading {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 10; }
    .widget-container.scrollable .shadow {
      box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1); }
    .widget-container.scrollable .widget-content {
      height: 100%;
      position: relative;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch; }

.padded {
  padding: 15px; }


.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; }

Similar snippets

Bootstrap example and template. Update user profile

Update user profile

Bootstrap example and template. Profile page with activities

Profile page with activities

Bootstrap example and template. User profile with friends and chat

User profile with friends and chat

Bootstrap example and template. bs4 vertical user profile cover

bs4 vertical user profile cover

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. bs5 edit profile account details

bs5 edit profile account details

Bootstrap example and template. chat app

chat app

Bootstrap example and template. Edit profile page

Edit profile page

Bootstrap example and template. blue chat widget

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 990 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