Bootstrap snippet and html example. message list

Bootstrap 4.4.1 snippet "message list" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: message,list,users

HTML code

Clean, semantic HTML that powers this Bootstrap 4.4.1 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<div class="container">
<div class="row">
        <div class="col-md-12">
            <div class="card card-white mb-5">
                <div class="card-heading clearfix border-bottom mb-4">
                    <h4 class="card-title">Inbox</h4>
                </div>
                <div class="card-body">
                    <ul class="list-unstyled message">
                        <li>
                            <a href="#">
                                <div class="media align-items-center">
                                    <div class="msg-img">
                                        <img src="https://www.chitrakootweb.com/template/finders/img/testmonials/t-1.jpg" alt="">
                                    </div>
                                    <div class="media-body">
                                        <h5>Earl Land <span class="float-right text-primary">reply</span></h5> It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout...
                                    </div>
                                </div>
                            </a>
                        </li>

                        <li>
                            <a href="#">
                                <div class="media align-items-center">
                                    <div class="msg-img">
                                        <img src="https://www.chitrakootweb.com/template/finders/img/testmonials/t-2.jpg" alt="">
                                    </div>
                                    <div class="media-body">
                                        <h5>Jaime Cressey <span class="float-right text-primary">reply</span></h5> Many desktop publishing packages and web page editors now use Lorem Ipsum...
                                    </div>
                                </div>
                            </a>
                        </li>

                        <li>
                            <a href="#">
                                <div class="media align-items-center">
                                    <div class="msg-img">
                                        <img src="https://www.chitrakootweb.com/template/finders/img/testmonials/t-3.jpg" alt="">
                                    </div>
                                    <div class="media-body">
                                        <h5>Tesha Stovall <span class="float-right text-primary">reply</span></h5> There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration...
                                    </div>
                                </div>
                            </a>
                        </li>

                        <li>
                            <a href="#">
                                <div class="media align-items-center">
                                    <div class="msg-img">
                                        <img src="https://www.chitrakootweb.com/template/finders/img/testmonials/t-4.jpg" alt="">
                                    </div>
                                    <div class="media-body">
                                        <h5>John Inoue <span class="float-right text-primary">reply</span></h5> It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages...
                                    </div>
                                </div>
                            </a>
                        </li>

                        <li>
                            <a href="#">
                                <div class="media align-items-center">
                                    <div class="msg-img">
                                        <img src="https://www.chitrakootweb.com/template/finders/img/testmonials/t-5.jpg" alt="">
                                    </div>
                                    <div class="media-body">
                                        <h5>Lori Scott <span class="float-right text-primary">reply</span></h5> All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making...
                                    </div>
                                </div>
                            </a>
                        </li>
                    </ul>

                </div>
            </div>
            <nav aria-label="Page navigation example">
                <ul class="pagination justify-content-center">
                    <li class="page-item disabled">
                        <a class="page-link" href="#" tabindex="-1" aria-disabled="true">Previous</a>
                    </li>
                    <li class="page-item"><a class="page-link" href="#">1</a></li>
                    <li class="page-item"><a class="page-link" href="#">2</a></li>
                    <li class="page-item"><a class="page-link" href="#">3</a></li>
                    <li class="page-item">
                        <a class="page-link" href="#">Next</a>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 4.4.1 to keep the design, spacing, and responsiveness consistent.

body{
    background: #f6f9fc;
    margin-top:20px;}
.message li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

a {
    color: #2b2b2b;
}

.msg-img {
    margin-right: 20px;
}

.msg-img img {
    width: 60px;
    border-radius: 50%;
}

.message li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media screen and (max-width: 575px) {
    .msg-img {
        margin-right: 12px;
    }
    .msg-img img {
        width: 50px;
    }
}
.card {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    box-shadow: none;
    border: none;
    padding: 25px;
}
.mb-5, .my-5 {
    margin-bottom: 3rem!important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: #2b2b2b;
}
.h5, h5 {
    font-size: 1.25rem;
}

Similar snippets

Bootstrap example and template. blog content page

blog content page

Bootstrap example and template. manage users

manage users

Bootstrap example and template. light user list

light user list

Bootstrap example and template. bs4 shop cart

bs4 shop cart

Bootstrap example and template. account setting or edit profile

account setting or edit profile

Bootstrap example and template. account settings

account settings

Bootstrap example and template. bs4 profile settings page

bs4 profile settings page

Bootstrap example and template. Support center

Support center

FAQ

How do I use this snippet?

Include Bootstrap 4.4.1, 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 4.4.1.

Bootstrap example and template. message list

About this bootstrap example/template

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.6K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 4.4.1

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 4.4.1 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