HTML code
Clean, semantic HTML that powers this Bootstrap 4.5.0 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.
Download<div class="container">
<div class="row justify-content-center pb-5">
<div class="col-lg-9 pb-lg-4 text-center">
<h3 class="font-alt font-w-600 letter-spacing-2 text-uppercase title-xs-small title-extra-large-2">Our Pricing</h3>
<p class="font-alt mb-0 mt-3 text-xs-large text-uppercase title-medium">What we can offer for our customers</p>
<span class="bg-base-color d-inline-block mt-4 sep-line-thick-long"></span>
</div>
<!-- //.col-lg-9 -->
</div>
<!-- //.row -->
<div class="row m-lg-0">
<div class="col-md-6 col-lg-3 px-lg-0">
<div class="pricing border-base-color border-top border-extra-thick box-shadow text-center">
<div class="pricing-header bg-black border-base-color border-bottom border-medium-thick px-3 py-4">
<span class="d-block font-alt letter-spacing-2 text-uppercase text-white title-large">Starter</span>
<span class="price d-block mt-4 text-white">
<span class="symbol title-medium">$</span>
<span class="title-extra-large-5">18</span>
<span class="text-medium">/Month</span>
</span>
<p class="opacity-8 m-0 mt-3 text-small text-white"><i>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</i></p>
</div>
<!-- //.pricing-header -->
<div class="pricing-body">
<span class="bg-gray d-block p-4 text-large">4 Core Processor</span>
<span class="bg-white d-block p-4 text-large">100GB Storage</span>
<span class="bg-gray d-block p-4 text-large">24/7 Free Support</span>
<span class="bg-white d-block p-4 text-large">Weekly Backups</span>
</div>
<!-- //.pricing-body -->
<div class="pricing-footer bg-base-color">
<a href="#" class="d-block font-alt font-w-600 letter-spacing-2 text-medium text-uppercase text-white p-3 w-100">Get Started</a>
</div>
<!-- //.pricing-footer -->
</div>
<!-- //.pricing -->
</div>
<!-- //.col-md-6 -->
<div class="col-md-6 col-lg-3 mt-5 mt-md-0 px-lg-0">
<div class="pricing border-base-color border-top border-extra-thick box-shadow text-center">
<div class="pricing-header bg-black border-base-color border-bottom border-medium-thick px-3 py-4">
<span class="d-block font-alt letter-spacing-2 text-uppercase text-white title-large">Basic</span>
<span class="price d-block mt-4 text-white">
<span class="symbol title-medium">$</span>
<span class="title-extra-large-5">29</span>
<span class="text-medium">/Month</span>
</span>
<p class="opacity-8 m-0 mt-3 text-small text-white"><i>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</i></p>
</div>
<!-- //.pricing-header -->
<div class="pricing-body">
<span class="bg-gray d-block p-4 text-large">4 Core Processor</span>
<span class="bg-white d-block p-4 text-large">300GB Storage</span>
<span class="bg-gray d-block p-4 text-large">24/7 Free Support</span>
<span class="bg-white d-block p-4 text-large">Daily Backups</span>
</div>
<!-- //.pricing-body -->
<div class="pricing-footer bg-base-color">
<a href="#" class="d-block font-alt font-w-600 letter-spacing-2 text-medium text-uppercase text-white p-3 w-100">Get Started</a>
</div>
<!-- //.pricing-footer -->
</div>
<!-- //.pricing -->
</div>
<!-- //.col-md-6 -->
<div class="col-md-6 col-lg-3 mt-5 mt-lg-0 px-lg-0">
<div class="pricing border-base-color border-top border-extra-thick box-shadow text-center">
<div class="pricing-header bg-black border-base-color border-bottom border-medium-thick px-3 py-4">
<span class="d-block font-alt letter-spacing-2 text-uppercase text-white title-large">Pro</span>
<span class="price d-block mt-4 text-white">
<span class="symbol title-medium">$</span>
<span class="title-extra-large-5">50</span>
<span class="text-medium">/Month</span>
</span>
<p class="opacity-8 m-0 mt-3 text-small text-white"><i>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</i></p>
</div>
<!-- //.pricing-header -->
<div class="pricing-body">
<span class="bg-gray d-block p-4 text-large">4 Core Processor</span>
<span class="bg-white d-block p-4 text-large">1TB Storage</span>
<span class="bg-gray d-block p-4 text-large">24/7 Free Support</span>
<span class="bg-white d-block p-4 text-large">Hourly Backups</span>
</div>
<!-- //.pricing-body -->
<div class="pricing-footer bg-base-color">
<a href="#" class="d-block font-alt font-w-600 letter-spacing-2 text-medium text-uppercase text-white p-3 w-100">Get Started</a>
</div>
<!-- //.pricing-footer -->
</div>
<!-- //.pricing -->
</div>
<!-- //.col-md-6 -->
<div class="col-md-6 col-lg-3 mt-5 mt-lg-0 px-lg-0">
<div class="pricing border-base-color border-top border-extra-thick box-shadow text-center">
<div class="pricing-header bg-black border-base-color border-bottom border-medium-thick px-3 py-4">
<span class="d-block font-alt letter-spacing-2 text-uppercase text-white title-large">Ultra</span>
<span class="price d-block mt-4 text-white">
<span class="symbol title-medium">$</span>
<span class="title-extra-large-5">99</span>
<span class="text-medium">/Month</span>
</span>
<p class="opacity-8 m-0 mt-3 text-small text-white"><i>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</i></p>
</div>
<!-- //.pricing-header -->
<div class="pricing-body">
<span class="bg-gray d-block p-4 text-large">4 Core Processor</span>
<span class="bg-white d-block p-4 text-large">3TB Storage</span>
<span class="bg-gray d-block p-4 text-large">24/7 Free Support</span>
<span class="bg-white d-block p-4 text-large">Hourly Backups</span>
</div>
<!-- //.pricing-body -->
<div class="pricing-footer bg-base-color">
<a href="#" class="d-block font-alt font-w-600 letter-spacing-2 text-medium text-uppercase text-white p-3 w-100">Get Started</a>
</div>
<!-- //.pricing-footer -->
</div>
<!-- //.pricing -->
</div>
<!-- //.col-md-6 -->
</div>
<!-- //.row -->
</div>CSS code
Scoped CSS that styles the component. Paste it after Bootstrap 4.5.0 to keep the design, spacing, and responsiveness consistent.
Downloadbody{margin-top:20px;
background:#eee;
}
.border-base-color {
border-color: #ef4135 !important;
}
.box-shadow {
box-shadow: 0 0 25px 0 rgba(0,0,0,.05);
}
.border-extra-thick {
border-width: 4px!important;
}
.border-top {
border-top: 1px solid rgba(0,0,0,.1);
}
.text-center {
text-align: center!important;
}
.border-top {
border-top: 1px solid #dee2e6!important;
}
.bg-black {
background-color: #000!important;
}
.title-large {
font-size: 1.75rem!important;
line-height: 2.275rem!important;
}
.pricing .price .symbol {
bottom: 36px;
position: relative;
}
.title-medium {
font-size: 1.5rem!important;
line-height: 2.25rem!important;
}
.title-extra-large-5 {
font-size: 5rem!important;
line-height: 5rem!important;
}
.text-medium {
font-size: .875rem!important;
line-height: 1.313rem!important;
}
.bg-base-color {
background-color: #ef4135 !important;
}FAQ
How do I use this snippet?
Include Bootstrap 4.5.0, 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.5.0.
About this bootstrap example/template
This free Bootstrap 4.5.0 snippet, pricing table with black header, was published on Aug 15th 2020, 12:42 by Bootdey Admin.
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 6.3K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.
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