HTML code
Clean, semantic HTML that powers this Bootstrap 5.0.1 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.
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" />
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="invoice-title">
<h4 class="float-end font-size-15">Invoice #DS0204 <span class="badge bg-success font-size-12 ms-2">Paid</span></h4>
<div class="mb-4">
<h2 class="mb-1 text-muted">Bootdey.com</h2>
</div>
<div class="text-muted">
<p class="mb-1">3184 Spruce Drive Pittsburgh, PA 15201</p>
<p class="mb-1"><i class="uil uil-envelope-alt me-1"></i> [email protected]</p>
<p><i class="uil uil-phone me-1"></i> 012-345-6789</p>
</div>
</div>
<hr class="my-4">
<div class="row">
<div class="col-sm-6">
<div class="text-muted">
<h5 class="font-size-16 mb-3">Billed To:</h5>
<h5 class="font-size-15 mb-2">Preston Miller</h5>
<p class="mb-1">4068 Post Avenue Newfolden, MN 56738</p>
<p class="mb-1">[email protected]</p>
<p>001-234-5678</p>
</div>
</div>
<!-- end col -->
<div class="col-sm-6">
<div class="text-muted text-sm-end">
<div>
<h5 class="font-size-15 mb-1">Invoice No:</h5>
<p>#DZ0112</p>
</div>
<div class="mt-4">
<h5 class="font-size-15 mb-1">Invoice Date:</h5>
<p>12 Oct, 2020</p>
</div>
<div class="mt-4">
<h5 class="font-size-15 mb-1">Order No:</h5>
<p>#1123456</p>
</div>
</div>
</div>
<!-- end col -->
</div>
<!-- end row -->
<div class="py-2">
<h5 class="font-size-15">Order Summary</h5>
<div class="table-responsive">
<table class="table align-middle table-nowrap table-centered mb-0">
<thead>
<tr>
<th style="width: 70px;">No.</th>
<th>Item</th>
<th>Price</th>
<th>Quantity</th>
<th class="text-end" style="width: 120px;">Total</th>
</tr>
</thead><!-- end thead -->
<tbody>
<tr>
<th scope="row">01</th>
<td>
<div>
<h5 class="text-truncate font-size-14 mb-1">Black Strap A012</h5>
<p class="text-muted mb-0">Watch, Black</p>
</div>
</td>
<td>$ 245.50</td>
<td>1</td>
<td class="text-end">$ 245.50</td>
</tr>
<!-- end tr -->
<tr>
<th scope="row">02</th>
<td>
<div>
<h5 class="text-truncate font-size-14 mb-1">Stainless Steel S010</h5>
<p class="text-muted mb-0">Watch, Gold</p>
</div>
</td>
<td>$ 245.50</td>
<td>2</td>
<td class="text-end">$491.00</td>
</tr>
<!-- end tr -->
<tr>
<th scope="row" colspan="4" class="text-end">Sub Total</th>
<td class="text-end">$732.50</td>
</tr>
<!-- end tr -->
<tr>
<th scope="row" colspan="4" class="border-0 text-end">
Discount :</th>
<td class="border-0 text-end">- $25.50</td>
</tr>
<!-- end tr -->
<tr>
<th scope="row" colspan="4" class="border-0 text-end">
Shipping Charge :</th>
<td class="border-0 text-end">$20.00</td>
</tr>
<!-- end tr -->
<tr>
<th scope="row" colspan="4" class="border-0 text-end">
Tax</th>
<td class="border-0 text-end">$12.00</td>
</tr>
<!-- end tr -->
<tr>
<th scope="row" colspan="4" class="border-0 text-end">Total</th>
<td class="border-0 text-end"><h4 class="m-0 fw-semibold">$739.00</h4></td>
</tr>
<!-- end tr -->
</tbody><!-- end tbody -->
</table><!-- end table -->
</div><!-- end table responsive -->
<div class="d-print-none mt-4">
<div class="float-end">
<a href="javascript:window.print()" class="btn btn-success me-1"><i class="fa fa-print"></i></a>
<a href="#" class="btn btn-primary w-md">Send</a>
</div>
</div>
</div>
</div>
</div>
</div><!-- end col -->
</div>
</div>CSS code
Scoped CSS that styles the component. Paste it after Bootstrap 5.0.1 to keep the design, spacing, and responsiveness consistent.
Downloadbody{margin-top:20px;
background-color:#eee;
}
.card {
box-shadow: 0 20px 27px 0 rgb(0 0 0 / 5%);
}
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 0 solid rgba(0,0,0,.125);
border-radius: 1rem;
}FAQ
How do I use this snippet?
Include Bootstrap 5.0.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 5.0.1.
About this bootstrap example/template
This free Bootstrap 5.0.1 snippet, invoice card, was published on Mar 25th 2022, 12: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 44.1K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.
Bootstrap 5.0.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 5.0.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