Bootstrap snippet and html example. card activity

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

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.

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

<div class="container">
<div class="col-lg-10 col-md-12 card-no-border">
    <div class="card">
        <div class="card-body">
            <div class="d-flex">
                <h4 class="card-title"><span class="lstick"></span>Activity</h4>
            </div>
        </div>
        <div class="activity-box">
            <div class="card-body">
                <!-- Activity item-->
                <div class="activity-item">
                    <div class="round m-r-20"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user" width="50" /></div>
                    <div class="m-t-10">
                        <h5 class="m-b-0 font-medium">Mark Freeman <span class="text-muted font-14 m-l-10">| &nbsp; 6:30 PM</span></h5>
                        <h6 class="text-muted">uploaded this file</h6>
                        <table class="table vm b-0 m-b-0">
                            <tbody>
                                <tr>
                                    <td class="m-r-10 b-0">
                                        <i class="fa fa-file-archive-o fa-5x" aria-hidden="true"></i>
                                    </td>
                                    <td class="b-0">
                                        <h5 class="m-b-0 font-medium">Homepage.zip</h5>
                                        <h6>54 MB</h6>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- Activity item-->
                <!-- Activity item-->
                <div class="activity-item">
                    <div class="round m-r-20"><img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="user" width="50" /></div>
                    <div class="m-t-10">
                        <h5 class="m-b-5 font-medium">Emma Smith <span class="text-muted font-14 m-l-10">| &nbsp; 6:30 PM</span></h5>
                        <h6 class="text-muted">joined projectname, and invited <a href="javascript:void(0)">@maxcage, @maxcage, @maxcage, @maxcage, @maxcage,+3</a></h6>
                        <span class="image-list m-t-20">
                            <a href="javascript:void(0)"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="img-circle" alt="user" width="50" /></a>
                            <a href="javascript:void(0)"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" class="img-circle" alt="user" width="50" /></a>
                            <a href="javascript:void(0)"><span class="round round-warning">C</span></a>
                            <a href="javascript:void(0)"><span class="round round-danger">D</span></a>
                            <a href="javascript:void(0)">+3</a>
                        </span>
                    </div>
                </div>
                <!-- Activity item-->
                <!-- Activity item-->
                <div class="activity-item">
                    <div class="round m-r-20"><img src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="user" width="50" /></div>
                    <div class="m-t-10">
                        <h5 class="m-b-0 font-medium">David R. Jones <span class="text-muted font-14 m-l-10">| &nbsp; 9:30 PM, July 13th</span></h5>
                        <h6 class="text-muted">uploaded this file</h6>
                        <span>
                            <a href="javascript:void(0)" class="m-r-10"><img src="https://www.bootdey.com/image/340x232/FF8C00/000000" alt="user" width="60" /></a>
                            <a href="javascript:void(0)" class="m-r-10"><img src="https://www.bootdey.com/image/340x232/7B68EE/000000" alt="user" width="60" /></a>
                        </span>
                    </div>
                </div>
                <!-- Activity item-->
                <!-- Activity item-->
                <div class="activity-item">
                    <div class="round m-r-20"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="user" width="50" /></div>
                    <div class="m-t-10">
                        <h5 class="m-b-5 font-medium">David R. Jones <span class="text-muted font-14 m-l-10">| &nbsp; 6:30 PM</span></h5>
                        <h6 class="text-muted">Commented on<a href="javascript:void(0)">Test Project</a></h6>
                        <p class="m-b-0">It has survived not only five centuries, but also the leap into unchanged.</p>
                    </div>
                </div>
                <!-- Activity item-->
            </div>
        </div>
    </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: #f4f6f9;
    margin-top:20px;
}
.activity-box .date-devider {
    border-top: 2px solid rgba(120, 130, 140, 0.13);
    position: relative;
}
.activity-box .date-devider span {
    background: #e9edf2;
    padding: 5px 15px;
    border-radius: 60px;
    font-size: 14px;
    top: -15px;
    position: relative;
    margin-left: 20px;
}

.activity-box .activity-item {
    display: flex;
    margin-bottom: 30px;
}
.activity-box .activity-item .image-list > a {
    margin-left: -15px;
    position: relative;
    vertical-align: middle;
}
.activity-box .activity-item .image-list > a:first-child,
.activity-box .activity-item .image-list > a:last-child {
    margin-left: 0px;
}
.activity-box .activity-item .image-list > a:hover {
    z-index: 10;
}
.activity-box .activity-item .image-list > a:hover img {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}
.round img {
    border-radius: 100%;
}
.card-no-border .card {
    border: 0px;
    border-radius: 0px;
    box-shadow: none;
}
.m-r-20 {
    margin-right: 20px;
}
.img-circle {
    border-radius: 100%;
}
.round.round-warning {
    background: #ffb22b;
}
.round {
    line-height: 48px;
    color: #ffffff;
    width: 50px;
    height: 50px;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    border-radius: 100%;
    background: #398bf7;
}

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. card activity

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 7.9K+ 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