Bootstrap snippet. Bootstrap 5 chat app frame avatar placeholder

This snippet was created to help web designers, 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.

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

Download
<!DOCTYPE html>
<html lang="en">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
    <!-- CSS only -->
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-12 my-3">
            <h1>Bootstrap 5 chat app</h1>
            <hr>
            Support my work @ MMLTech | <a href="https://ko-fi.com/mmltech" target="_blank"><i class="fas fa-coffee"></i> Buy me a coffee</a> | <a href="https://streamcd.net">StreamCD</a> | <a href="https://obscountdown.com">OBSCountdown</a> | <a href="https://avatarplaceholder.com">AvatarPlaceholder</a>
            <hr>
        </div>
    </div>
    <div id="ChatBox">
        <div class="row">
            <div class="col-md-4">
                <div class="sidebar h-100">
                    <form>
                        <div class="form-group">
                            <div class="input-group mb-3">
                                <span class="input-group-text" id="basic-addon1"><i class="fas fa-search"></i></span>
                                <input type="text" class="form-control" placeholder="Search user" aria-label="Search user" aria-describedby="basic-addon1">
                            </div>
                        </div>
                    </form>
                    <hr>
                    <ul class="users-list">
                        <li class="user-profile d-flex align-items-center">
                            <div class="user-avatar me-3">
                                <img src="https://plhold.com/avatar/60?text=john+doe" alt="" />
                            </div>
                            <div class="d-flex flex-column">
                                <strong class="user-name">John Doe</strong>
                                <span class="status">
                                <i class="fas fa-circle text-success"></i>
                                Online
                            </span>
                            </div>
                        </li>
                        <li class="user-profile d-flex align-items-center active">
                            <div class="user-avatar me-3">
                                <img src="https://plhold.com/avatar/60?text=Angelien+Austėja+Rakes" alt="" />
                            </div>
                            <div class="d-flex flex-column">
                                <strong class="user-name">Angelien Austėja Rakes</strong>
                                <span class="status">
                                <i class="fas fa-circle text-danger"></i>
                                Last seen 1 day ago
                            </span>
                            </div>
                        </li>
                        <li class="user-profile d-flex align-items-center">
                            <div class="user-avatar me-3">
                                <img src="https://plhold.com/avatar/60?text=Temuri+Naja+Rigby" alt="" />
                            </div>
                            <div class="d-flex flex-column">
                                <strong class="user-name">Temuri Naja Rigby</strong>
                                <span class="status">
                                <i class="fas fa-circle text-warning"></i>
                                Away
                            </span>
                            </div>
                        </li>
                        <li class="user-profile d-flex align-items-center">
                            <div class="user-avatar me-3">
                                <img src="https://plhold.com/avatar/60?text=Izem+Estela+McAfee" alt="" />
                            </div>
                            <div class="d-flex flex-column">
                                <strong class="user-name">Izem Estela McAfee</strong>
                                <span class="status">
                                <i class="fas fa-circle text-info"></i>
                                Do Not Disturb
                            </span>
                            </div>
                        </li>
                        <li class="user-profile d-flex align-items-center">
                            <div class="user-avatar me-3">
                                <img src="https://plhold.com/avatar/60?text=Luz+Ruža+Whittle" alt="" />
                            </div>
                            <div class="d-flex flex-column">
                                <strong class="user-name">Luz Ruža Whittle</strong>
                                <span class="status">
                                <i class="fas fa-circle text-success"></i>
                                Online
                            </span>
                            </div>
                        </li>
                        <li class="user-profile d-flex align-items-center">
                            <div class="user-avatar me-3">
                                <img src="https://plhold.com/avatar/60?text=Govinda+Coriander+Ármannsson" alt="" />
                            </div>
                            <div class="d-flex flex-column">
                                <strong class="user-name">Govinda Coriander Ármannsson</strong>
                                <span class="status">
                                <i class="fas fa-circle text-success"></i>
                                Online
                            </span>
                            </div>
                        </li>
                        <li class="user-profile d-flex align-items-center">
                            <div class="user-avatar me-3">
                                <img src="https://plhold.com/avatar/60?text=Shikha+Dionisia+Sarkissian" alt="" />
                            </div>
                            <div class="d-flex flex-column">
                                <strong class="user-name">Shikha Dionisia Sarkissian</strong>
                                <span class="status">
                                <i class="fas fa-circle text-success"></i>
                                Online
                            </span>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="col-md-8">
                <div class="chat-frame d-flex flex-column justify-content-between">
                    <div class="action-frame d-flex align-items-center">
                        <div class="user-avatar me-3">
                            <img src="https://plhold.com/avatar/60?text=Angelien+Austėja+Rakes" alt="" />
                        </div>
                        <div class="d-flex flex-column">
                            <strong class="user-name">Angelien Austėja Rakes</strong>
                            <span class="status">
                                <i class="fas fa-circle text-danger"></i>
                                Last seen 1 day ago
                            </span>
                        </div>
                        <div class="action-buttons d-flex ms-auto">
                            <button class="btn btn-outline-secondary me-2"><i class="fas fa-camera"></i></button>
                            <button class="btn btn-outline-info me-2"><i class="fas fa-image"></i></button>
                            <button class="btn btn-outline-primary me-2"><i class="fas fa-cogs"></i></button>
                            <div class="dropstart">
                                <button class="btn btn-outline-success dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
                                    <i class="fas fa-ellipsis-v"></i>
                                </button>
                                <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
                                    <li><a class="dropdown-item" href="#">Block</a></li>
                                    <li><a class="dropdown-item" href="#">Ignore</a></li>
                                    <li><a class="dropdown-item" href="#">Remove friend</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="message-history py-3">
                        <div class="message-line d-flex flex-column">
                            <div class="d-flex justify-content-end mb-3">
                                <div class="user-avatar">
                                    <img src="https://plhold.com/avatar/60?text=Angelien+Austėja+Rakes" alt="" />
                                </div>
                            </div>
                            <p class="message ms-auto">
                                Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                                <small class="date d-flex justify-content-start mt-3">11 Nov 2022 13:00</small>
                            </p>
                        </div>
                        <div class="message-line reply d-flex flex-column">
                            <div class="d-flex align-items-end mb-3">
                                <div class="user-avatar">
                                    <img src="https://plhold.com/avatar/60?text=Shikha+Dionisia+Sarkissian" alt="" />
                                </div>
                            </div>
                            <p class="message">
                                Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                                <small class="date d-flex justify-content-end mt-3">11 Nov 2022 13:00</small>
                            </p>
                        </div>
                        <div class="message-line reply d-flex flex-column">
                            <div class="d-flex align-items-end mb-3">
                                <div class="user-avatar">
                                    <img src="https://plhold.com/avatar/60?text=Shikha+Dionisia+Sarkissian" alt="" />
                                </div>
                            </div>
                            <p class="message">
                                Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                                <small class="date d-flex justify-content-end mt-3">11 Nov 2022 13:00</small>
                            </p>
                        </div>
                    </div>
                    <div class="inputs mt-auto">
                        <div class="input-group mb-3">
                            <input type="text" class="form-control" placeholder="Your message" aria-label="Your message" aria-describedby="button-addon2">
                            <button class="btn btn-outline-secondary" type="button" id="button-addon2"><i class="fas fa-paper-plane"></i></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
</html>

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

Download
body {
  background-color: #f4f7f6;
}

#ChatBox {
  background: #fff;
  border-radius: 0.55rem;
  border: 1px solid #ced4da;
}
#ChatBox * {
  /* width */
  /* Track */
  /* Handle */
  /* Handle on hover */
}
#ChatBox *::-webkit-scrollbar {
  width: 5px;
}
#ChatBox *::-webkit-scrollbar-track {
  background: transparent;
}
#ChatBox *::-webkit-scrollbar-thumb {
  -webkit-transition: 0.3s all;
  -moz-transition: 0.3s all;
  -ms-transition: 0.3s all;
  -o-transition: 0.3s all;
  transition: 0.3s all;
  background-color: #cccccc;
  border-radius: 0.25rem;
}
#ChatBox *::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
#ChatBox .user-avatar {
  border-radius: 9999999px;
  border: 5px solid #00000015;
  overflow: hidden;
}
#ChatBox .sidebar {
  border-right: 1px solid #ced4da;
  padding: 1rem;
}
#ChatBox .sidebar .users-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}
#ChatBox .sidebar .users-list li {
  cursor: pointer;
  padding: 0.25rem;
  -webkit-transition: 0.3s all;
  -moz-transition: 0.3s all;
  -ms-transition: 0.3s all;
  -o-transition: 0.3s all;
  transition: 0.3s all;
  margin-bottom: 0.25rem;
}
#ChatBox .sidebar .users-list li.active, #ChatBox .sidebar .users-list li:hover {
  background: #efefef;
  border-radius: 0.25rem;
}
#ChatBox .sidebar .users-list li .user-name {
  font-size: 1rem;
}
#ChatBox .sidebar .users-list li .status {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 9px;
  color: #adb5bd;
}
#ChatBox .chat-frame {
  padding: 1rem;
}
#ChatBox .chat-frame .action-frame {
  padding-bottom: 1rem;
  border-bottom: 1px solid #ced4da;
}
#ChatBox .chat-frame .message-history {
  max-height: 500px;
  overflow-x: hidden;
  overflow-y: scroll;
}
#ChatBox .chat-frame .message-history .message-line {
  padding: 1rem;
}
#ChatBox .chat-frame .message-history .message-line .user-avatar {
  width: fit-content;
}
#ChatBox .chat-frame .message-history .message-line.reply .message:before {
  left: 20px;
  right: initial;
}
#ChatBox .chat-frame .message-history .message-line .message {
  background: #efefef;
  border-radius: 0.55rem;
  font-size: 14px;
  color: #2d2d2d;
  padding: 1rem;
  width: fit-content;
  position: relative;
}
#ChatBox .chat-frame .message-history .message-line .message:before {
  content: "";
  display: block;
  position: absolute;
  top: -25px;
  right: 20px;
  border-top: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #efefef;
  border-left: 15px solid transparent;
}
#ChatBox .chat-frame .inputs {
  padding-top: 1rem;
  border-top: 1px solid #ced4da;
}

/*# sourceMappingURL=style.css.map */

Similar snippets

Bootstrap order placed successfully example

order placed successfully

Bootstrap profile with timeline activities example

profile with timeline activities

Bootstrap error 500 page example

error 500 page

Bootstrap edit profile form example

edit profile form

Bootstrap bs5 dark footer example

bs5 dark footer

Bootstrap Bootstrap accordion Start Templates example

Bootstrap accordion Start Templates

Bootstrap Why choose Us example

Why choose Us

Bootstrap about me section example

about me section

Bootstrap Bootstrap 5 chat app frame avatar placeholder example

About this bootstrap snippet

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

Bootstrap 5.2.0

This snippet 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

Jquery plugins

Great built-in plugins with jquery framework, you can easy to change all declarations

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This snippet can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working