HTML code
Clean, semantic HTML that powers this Bootstrap 5.2.0 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.
Download<div id="pricing-tables" class="padding-top padding-bottom">
<div class="container text-center">
<div class="section-title">
<h1>Pricing Tables</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas ac augue at erat hendrerit dictum. Praesent porta, purus eget sagittis imperdiet.</p>
</div>
<div class="pricing-table text-left">
<div class="row">
<div class="col-md-6 col-lg-3">
<div class="single-table">
<h2>Starter</h2>
<p class="price"><span class="dollar-icon">$</span><span>19</span> monthly</p>
<ul>
<li>5 Domain Names</li>
<li>1GB Dedicated Ram</li>
<li>5 Sub Domain</li>
<li>10 Addon Domain</li>
<li>24/7 Support</li>
</ul>
<a href="#" class="btn btn-primary">Sign-up</a>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="single-table featured-table">
<h2>Business</h2>
<p class="price"><span class="dollar-icon">$</span><span>129</span> monthly</p>
<ul>
<li>5 Domain Names</li>
<li>1GB Dedicated Ram</li>
<li>5 Sub Domain</li>
<li>10 Addon Domain</li>
<li>24/7 Support</li>
</ul>
<a href="#" class="btn btn-primary">Sign-up</a>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="single-table">
<h2>Basic</h2>
<p class="price"><span class="dollar-icon">$</span><span>49</span> monthly</p>
<ul>
<li>5 Domain Names</li>
<li>1GB Dedicated Ram</li>
<li>5 Sub Domain</li>
<li>10 Addon Domain</li>
<li>24/7 Support</li>
</ul>
<a href="#" class="btn btn-primary">Sign-up</a>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="single-table">
<h2>Ultra</h2>
<p class="price"><span class="dollar-icon">$</span><span>199</span> monthly</p>
<ul>
<li>5 Domain Names</li>
<li>1GB Dedicated Ram</li>
<li>5 Sub Domain</li>
<li>10 Addon Domain</li>
<li>24/7 Support</li>
</ul>
<a href="#" class="btn btn-primary">Sign-up</a>
</div>
</div>
</div>
</div>
<div class="pricing-table-one pricing-table">
<div class="row">
<div class="col-md-6 col-lg-3">
<div class="text-center single-table">
<h2>Basic</h2>
<p class="price"><span class="dollar-icon">$</span><span>19</span> monthly</p>
<ul>
<li>5 GB Space</li>
<li>50 GB Bandwidth</li>
<li>70 Portfolio Items</li>
<li>20 Video Uploads</li>
<li>24/7 Support</li>
</ul>
<a href="#" class="btn btn-primary">Sign Up</a>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="text-center single-table featured-table">
<h2>Standard</h2>
<p class="price"><span class="dollar-icon">$</span><span>39</span> monthly</p>
<ul>
<li>5 GB Space</li>
<li>50 GB Bandwidth</li>
<li>70 Portfolio Items</li>
<li>20 Video Uploads</li>
<li>24/7 Support</li>
</ul>
<a href="#" class="btn btn-primary">Sign Up</a>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="text-center single-table">
<h2>Business</h2>
<p class="price"><span class="dollar-icon">$</span><span>89</span> monthly</p>
<ul>
<li>5 GB Space</li>
<li>50 GB Bandwidth</li>
<li>70 Portfolio Items</li>
<li>20 Video Uploads</li>
<li>24/7 Support</li>
</ul>
<a href="#" class="btn btn-primary">Sign Up</a>
</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="text-center single-table">
<h2>Ultra</h2>
<p class="price"><span class="dollar-icon">$</span><span>199</span> monthly</p>
<ul>
<li>5 GB Space</li>
<li>50 GB Bandwidth</li>
<li>70 Portfolio Items</li>
<li>20 Video Uploads</li>
<li>24/7 Support</li>
</ul>
<a href="#" class="btn btn-primary">Sign Up</a>
</div>
</div>
</div>
</div>
</div>
</div>CSS code
Scoped CSS that styles the component. Paste it after Bootstrap 5.2.0 to keep the design, spacing, and responsiveness consistent.
Downloadbody{margin-top:20px;}
/*========================
=====Pricing Table CSS====
=========================*/
#pricing-tables {
overflow: hidden;
margin-bottom:25px;
}
.pricing-table-one {
margin-top:85px;
}
.single-table {
background-color: #fafafa;
}
.single-table h2 {
background-color: #f2f2f2;
padding: 23px;
margin-top: 0;
margin-bottom: 0;
}
.price {
font-size: 14px;
background-color: #dedede;
padding:9px 23px;
margin-bottom: 0;
}
.price span {
font-size: 24px;
font-weight: 700;
}
.price span.dollar-icon {
font-size: 16px;
font-weight: 400;
position: relative;
top: -5px;
}
.single-table ul {
padding: 5px 23px;
}
.single-table ul li {
margin-top: 15px;
}
.single-table .btn.btn-primary {
background-color: #dedede;
border: none;
border-radius: 0;
color: #454545;
display: block;
margin-bottom: 0;
font-weight: 700;
padding: 10px 0;
margin-top:40px;
}
.single-table.featured-table {
background-color: #f2f2f2;
}
.single-table.featured-table h2 {
color: #fff;
}
.single-table.featured-table .price {
color: #fff;
}
.single-table.featured-table .btn.btn-primary,
.single-table:hover .btn.btn-primary:hover{
color:#fff;
}
.pricing-table-one .single-table h2{
font-size: 18px;
font-weight: 700;
padding: 15px;
text-align: center;
text-transform: uppercase;
border-bottom:1px solid #fff;
color:#fff;
border-radius:3px 3px 0 0;
}
.pricing-table-one .price span.dollar-icon {
font-size: 48px;
font-weight: 700;
position: relative;
top: 0;
}
.pricing-table-one .price span {
font-size:48px;
font-weight:700;
}
.pricing-table-one .price {
font-size: 16px;
font-weight: 700;
margin-bottom: 0;
padding: 18px;
text-align: center;
color:#fff;
}
.pricing-table-one .single-table .btn.btn-primary {
color:#000;
padding:15px 0;
border-radius:0 0 3px 3px;
margin-top:0;
}
.pricing-table-one .single-table.featured-table .btn.btn-primary{
color:#fff;
}
.single-table .btn.btn-primary:hover,
.single-table.featured-table .btn.btn-primary:hover{
color:#020202;
}
.single-table .btn.btn-primary:hover:after,
.single-table .btn.btn-primary:hover:before {
background-color:#f4c216;;
}
.pricing-table-one .single-table ul li {
line-height: 55px;
margin-top: 0;
}
.pricing-table-one .single-table ul li:nth-child(even) {
background-color:#fcfcfc;
}
.pricing-table-one .single-table ul {
margin: 0;
padding:0;
}
.pricing-table-one .single-table.featured-table, .pricing-table-one .single-table {
background-color:#fff;
}
#pricing-tables .section-title h2:before {
background-image: url("../images/home/icons/pricing-title-icon.png");
}
.single-table.featured-table h2, .single-table.featured-table, .pricing-table-one .price {
background-color: #e07894;
}
.single-table.featured-table .price, .pricing-table-one .single-table h2, .pricing-table-one .single-table.featured-table .btn.btn-primary {
background-color: #ce5a78;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
.single-table ul li {
margin-top: 15px;
}
.single-table.featured-table {
background-color: #f2f2f2;
}
.single-table.featured-table .btn.btn-primary {
background-color: #e07894;
}
.single-table.featured-table .btn.btn-primary, .single-table:hover .btn.btn-primary:hover {
color: #fff;
}
FAQ
How do I use this snippet?
Include Bootstrap 5.2.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 5.2.0.
About this bootstrap example/template
This free Bootstrap 5.2.0 snippet, pricing tables with header with color, was published on Feb 24th 2023, 15:17 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 10.2K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.
Bootstrap 5.2.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 5.2.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