HubSpot Bootstrap Card Guide
Using Bootstrap card components inside HubSpot is an efficient way to design modern, responsive layouts without starting from scratch. This guide walks you through the essentials of Bootstrap cards and shows you how to adapt them for your HubSpot pages and templates.
The examples here are inspired by the official Bootstrap card documentation and the detailed tutorial on the HubSpot Blog, adapted so you can quickly apply them in your own environment.
What is a Bootstrap Card in HubSpot?
A Bootstrap card is a flexible content container that can include text, images, links, lists, and buttons. When you use these cards in HubSpot, you get layout consistency across landing pages, blog templates, and website pages built with Bootstrap-enabled themes.
Common card use cases inside HubSpot include:
- Feature highlights and product summaries
- Team member or author profile sections
- Pricing teasers and plan comparisons
- Blog post previews and resource grids
Because cards are responsive by design, they adapt well to HubSpot’s mobile-first layout requirements.
Core Bootstrap Card Structure for HubSpot
Every Bootstrap card you add to a HubSpot template starts with the same basic HTML structure. You can paste the snippet into a custom module, a raw HTML module, or a coded template.
<div class="card" style="width: 18rem;">
<img src="IMAGE_URL" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Quick example text to build on the card.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
When using this in HubSpot:
- Replace
IMAGE_URLwith a file from your HubSpot file manager. - Update the
card-title,card-text, and button text to match your offer. - Use HubL variables if you want dynamic text from HubSpot fields.
Popular Bootstrap Card Variations for HubSpot
The original Bootstrap tutorial demonstrates many styles you can reuse in HubSpot. Below are variations especially useful for marketing and content teams.
HubSpot Feature Cards with Titles and Links
Feature cards are perfect for highlighting services or tools on a HubSpot landing page.
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Service Name</h5>
<h6 class="card-subtitle mb-2 text-muted">Short tagline</h6>
<p class="card-text">Describe the value of this service in one or two sentences.</p>
<a href="#" class="card-link">Learn more</a>
</div>
</div>
Use this format in HubSpot for:
- Service overviews on a solutions page
- Feature tiles on a product hub
- Internal navigation cards to key resources
HubSpot Cards with Images and CTAs
Marketing campaigns in HubSpot often require a bold image plus a clear call-to-action. Combine card images with buttons to guide visitors to high-value offers.
<div class="card" style="width: 18rem;">
<img src="IMAGE_URL" class="card-img-top" alt="Offer image">
<div class="card-body">
<h5 class="card-title">Download the Guide</h5>
<p class="card-text">Give your audience a concise reason to click and convert.</p>
<a href="/your-hubspot-landing-page" class="btn btn-primary">Get the guide</a>
</div>
</div>
Point the button to a HubSpot landing page or a tracked URL to capture conversions.
HubSpot List Group Cards
The Bootstrap tutorial shows how to use list groups inside cards. This is ideal in HubSpot when you need a compact overview of features, benefits, or chapters.
<div class="card" style="width: 18rem;">
<div class="card-header">
Plan Highlights
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">Feature one</li>
<li class="list-group-item">Feature two</li>
<li class="list-group-item">Feature three</li>
</ul>
</div>
Insert this into a HubSpot pricing or comparison page to clearly display what each plan includes.
Styling Bootstrap Cards in HubSpot
HubSpot themes often come with their own CSS. When you bring in Bootstrap card markup, you may need to adjust styling to keep everything consistent.
Aligning HubSpot Theme Styles with Bootstrap
To align your cards with a HubSpot theme:
- Load Bootstrap CSS via your theme or a custom module (if not already included).
- Inspect your page in the browser to see any conflicts between HubSpot and Bootstrap classes.
- Add small overrides in your HubSpot theme stylesheet, such as font sizes or border radius.
For example, you might increase spacing between cards using:
.card { margin-bottom: 1.5rem; }
Color and Background Utilities in HubSpot
Use Bootstrap contextual classes in HubSpot to quickly change card backgrounds and borders.
<div class="card text-white bg-primary mb-3">
<div class="card-header">Featured</div>
<div class="card-body">
<h5 class="card-title">Primary card title</h5>
<p class="card-text">Use this card for key announcements or offers.</p>
</div>
</div>
These utility classes work seamlessly with HubSpot templates that already rely on Bootstrap v4 or v5.
HubSpot Layouts with Card Groups and Decks
In the original tutorial, Bootstrap card groups and grids help display multiple cards in a row. The same approach applies in HubSpot when designing resource libraries or product galleries.
Responsive Card Rows in HubSpot
Place your cards inside Bootstrap grid columns to make them responsive in HubSpot.
<div class="row">
<div class="col-md-4">
<div class="card mb-3">...</div>
</div>
<div class="col-md-4">
<div class="card mb-3">...</div>
</div>
<div class="col-md-4">
<div class="card mb-3">...</div>
</div>
</div>
This layout is ideal for three-column sections on a HubSpot homepage or pillar page.
How to Add Bootstrap Cards to HubSpot Step by Step
Follow these steps to start using cards on any HubSpot page or template.
- Confirm Bootstrap availability. Check your HubSpot theme or template to ensure Bootstrap CSS and JS are loaded. If not, work with a developer to include them.
- Open your HubSpot page editor. Choose the landing page, website page, or blog template where you want to add cards.
- Add a custom HTML module. In the drag-and-drop editor, insert an HTML module where the card group should appear.
- Paste the card markup. Use one of the sample Bootstrap card snippets above and adapt the content to match your offer.
- Connect HubSpot content fields. Optionally, convert the card to a custom module and map fields (title, text, image) to editable HubSpot fields.
- Preview and test responsiveness. Use the HubSpot preview tool to confirm cards look good on desktop, tablet, and mobile.
More Resources on HubSpot and Bootstrap Cards
For deeper technical details on Bootstrap card options, refer to the original tutorial on the HubSpot Blog at this Bootstrap card guide. It contains additional variations, code samples, and design ideas you can port into your HubSpot account.
If you need help planning your overall website and content strategy around Bootstrap and HubSpot, you can explore consulting resources such as Consultevo, which focuses on performance-driven digital implementation.
By combining flexible Bootstrap card components with the power of HubSpot’s content tools, you can quickly build visually consistent, conversion-ready sections that are easy for your team to maintain over time.
Need Help With Hubspot?
If you want expert help building, automating, or scaling your Hubspot , work with ConsultEvo, a team who has a decade of Hubspot experience.
“`
