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.5.0 included, to get the result that you can see in the preview selection
Download<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css" integrity="sha256-2XFplPlrFClt0bIdPgpz8H7ojnk10H69xRqd9+uTShA=" crossorigin="anonymous" />
<section class="counter">
<div class="container">
<div class="counter__content">
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="counter__item">
<div class="counter__item__text">
<i class="icon fas fa-project-diagram fa-3x"></i>
<h2 class="counter_num">230</h2>
<p>Compled Projects</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="counter__item second__item">
<div class="counter__item__text">
<i class="icon far fa-smile-beam fa-3x"></i>
<h2 class="counter_num">1068</h2>
<p>Happy clients</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="counter__item third__item">
<div class="counter__item__text">
<i class="icon fas fa-chalkboard-teacher fa-3x"></i>
<h2 class="counter_num">230</h2>
<p>Perspective clients</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="counter__item four__item">
<div class="counter__item__text">
<i class="icon fas fa-list-alt fa-3x"></i>
<h2 class="counter_num">230</h2>
<p>Compled Projects</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
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.5.0 included, to get the result that you can see in the preview selection
Downloadbody{margin-top:20px;}
.counter {
background: #100028;
height: 840px;
padding-top: 380px;
overflow: hidden;
}
.counter__content {
padding: 0px 50px;
}
.counter__item {
background: #1a083d;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
height: 255px;
width: 255px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
text-align: center;
position: relative;
z-index: 1;
}
.counter__item::before {
position: absolute;
left: -1px;
bottom: -2px;
height: 636px;
width: 636px;
border-left: 1px solid #333333;
border-top: 1px solid #333333;
content: "";
z-index: -1;
}
.counter__item.second__item {
margin-top: -185px;
}
.counter__item.second__item:before {
left: -316px;
bottom: -65px;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
border-left: none;
border-top: none;
}
.counter__item.four__item {
margin-top: -185px;
}
.counter__item.four__item:before {
left: -380px;
bottom: -380px;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
border-left: none;
border-top: none;
}
.counter__item.third__item:before {
left: -65px;
bottom: -317px;
}
.counter__item__text {
-webkit-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.counter__item__text h2 {
font-size: 60px;
color: #ffffff;
font-weight: 700;
margin-bottom: 6px;
margin-top: 18px;
}
.counter__item__text p {
color: #ffffff;
margin-bottom: 0;
}
.counter__item__text .icon{
color:#00FFFF;
}
About this bootstrap example/template
This example/template, counter content, was published on Sep 25th 2020, 08:29 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 7.5K views, Using this bootstrap snippet you have the following benefits:
Bootstrap 4.5.0
<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.5.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
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