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 4.4.1 included, to get the result that you can see in the preview selection
Download
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="card card-lg">
<h6 class="card-header">
This Week
</h6>
<div class="card-body">
<div class="user-activity">
<div class="media">
<div class="media-img-wrap">
<div class="avatar avatar-sm">
<img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user" class="avatar-img rounded-circle" />
</div>
</div>
<div class="media-body">
<div>
<span class="d-block mb-5"><span class="font-weight-500 text-dark text-capitalize">Laura Thompson</span><span class="pl-5">joined josh groben team.</span></span>
<span class="d-block font-13 mb-30">3 hours ago</span>
</div>
<div class="card d-inline-block w-sm-360p">
<div class="card-body">
<div class="d-flex flex-wrap">
<img class="d-86 rounded mb-15 mr-15" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="thumb" />
<div class="w-65">
<h6 class="mb-5">Team Josh Groben</h6>
<p>A fan club for josh groben songs</p>
<div class="avatar-group avatar-group-sm avatar-group-overlapped mt-10">
<div class="avatar">
<img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user" class="avatar-img rounded-circle" />
</div>
<div class="avatar">
<img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user" class="avatar-img rounded-circle" />
</div>
<div class="avatar">
<img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="user" class="avatar-img rounded-circle" />
</div>
<div class="avatar">
<img src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="user" class="avatar-img rounded-circle" />
</div>
<div class="avatar">
<span class="avatar-text avatar-text-green rounded-circle">
<span class="initial-wrap"><span>87+</span></span>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer text-muted justify-content-between">
<div><span class="text-dark">7,120</span> Members (87 new)</div>
<button class="btn btn-xs btn-primary ml-15 w-sm-100p">join</button>
</div>
</div>
</div>
</div>
<div class="media">
<div class="media-img-wrap">
<div class="avatar avatar-sm">
<img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="user" class="avatar-img rounded-circle" />
</div>
</div>
<div class="media-body">
<div class="d-flex align-items-start">
<div>
<span class="d-block mb-5"><span class="font-weight-500 text-dark text-capitalize">Meayme Fletcher</span><span class="pl-5">liked photos</span></span>
<span class="d-block font-13 mb-30">6 hours ago</span>
</div>
<button class="btn btn-sm btn-primary ml-auto">follow</button>
</div>
<div class="d-flex flex-wrap">
<a href="#" class="w-sm-150p w-80p mr-10 mb-10">
<img class="img-fluid rounded" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="Card image cap" />
</a>
<a href="#" class="w-sm-150p w-80p mr-10 mb-10">
<img class="img-fluid rounded" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="Card image cap" />
</a>
<a href="#" class="w-sm-150p w-80p mr-10 mb-10">
<img class="img-fluid rounded" src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="Card image cap" />
</a>
<a href="#" class="w-sm-150p w-80p mr-10 mb-10">
<img class="img-fluid rounded" src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="Card image cap" />
</a>
</div>
</div>
</div>
<div class="media">
<div class="media-img-wrap">
<div class="avatar avatar-sm">
<img src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="user" class="avatar-img rounded-circle" />
</div>
</div>
<div class="media-body">
<div>
<span class="d-block mb-5">
<span class="font-weight-500 text-dark text-capitalize">Billy Flowers</span>
<span class="pl-5">
lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have
scrambled.
</span>
</span>
<span class="d-block font-13">1 day ago</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card card-lg">
<h6 class="card-header">
This Month
</h6>
<div class="card-body">
<div class="user-activity">
<div class="media pb-0">
<div class="media-img-wrap">
<div class="avatar avatar-sm">
<img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user" class="avatar-img rounded-circle" />
</div>
</div>
<div class="media-body">
<div>
<span class="d-block mb-5">
<span class="font-weight-500 text-dark text-capitalize">Morgan Freeman</span><span class="pl-5">Until recently, the prevailing view assumed lorem ipsum was born as a nonsense text.</span>
<a href="#" class="d-block word-break mt-5">https://.net/user/hencework/portfolio</a>
</span>
<span class="d-block font-13">32 days ago</span>
</div>
</div>
</div>
</div>
</div>
</div>
</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 4.4.1 included, to get the result that you can see in the preview selection
Downloadbody{
background:#f5f5f5;
margin-top:20px;
}
/*Activity*/
.user-activity .media {
position: relative;
padding-bottom: 20px;
margin-left: 20px;
}
.user-activity .media .media-img-wrap {
position: absolute;
left: -20px;
}
.user-activity .media:after {
content: "";
position: absolute;
width: 1px;
height: calc(100% - 77px);
background: #eaecec;
top: 60px;
}
.user-activity .media .media-body {
border-bottom: 1px solid #eaecec;
padding-bottom: 30px;
margin-left: 40px;
min-width: 0;
}
.user-activity .media:last-child .media-body {
border-bottom: none;
}
.user-activity.user-activity-sm .media {
padding-bottom: 10px;
margin-left: 16px;
}
.avatar-group {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
}
.mt-10 {
margin-top: 10px !important;
}
.avatar-group.avatar-group-sm.avatar-group-overlapped .avatar {
margin-right: -10px;
}
.avatar-group.avatar-group-sm .avatar {
font-size: .6rem;
width: 2rem;
height: 2rem;
}
.avatar-group.avatar-group-overlapped .avatar {
margin-right: -13px;
}
@media (min-width: 576px){
.w-sm-150p {
width: 150px !important;
}
}
.w-80p {
width: 80px !important;
}
.mr-10 {
margin-right: 10px !important;
}
.mb-10 {
margin-bottom: 10px !important;
}
.user-activity.user-activity-sm .media .media-img-wrap {
left: -16px;
}
.user-activity.user-activity-sm .media:after {
height: calc(100% - 47px);
top: 40px;
}
.user-activity.user-activity-sm .media .media-body {
padding-bottom: 10px;
margin-left: 30px;
}
@media (max-width: 576px) {
.user-activity .media .media-body {
margin-left: 35px;
}
}
.user-activity .media .media-img-wrap {
position: absolute;
left: -20px;
}
.avatar.avatar-sm {
font-size: .9rem;
width: 2.625rem;
height: 2.625rem;
}
.avatar {
font-size: 1rem;
position: relative;
display: inline-block;
width: 3.875rem;
height: 3.875rem;
}
.avatar .avatar-img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
}
.card {
border: none;
box-shadow: none;
margin-bottom: 20px;
}
@media (min-width: 576px){
.w-sm-360p {
width: 360px !important;
}
}
.font-weight-500 {
font-weight: 500 !important;
}
.text-dark {
color: #324148 !important;
}
.card.card-lg .card-header, .card.card-lg .card-footer {
padding: .9rem 1.5rem;
}
.card .card-header {
background: transparent;
border: none;
}
.card.card-lg .card-header, .card.card-lg .card-footer {
padding: .9rem 1.5rem;
}
.card .card-footer {
background: transparent;
border-color: #eaecec;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
About this bootstrap example/template
This example/template, activity page, was published on Feb 25th 2020, 14:24 by Bootdey Admin and it is free.
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 10.4K views, Using this bootstrap snippet you have the following benefits:
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