Bootstrap 5 Contact Card

Ruth Jul 09, 2026

In the ever-evolving landscape of web development, Bootstrap has consistently been a go-to library for creating responsive and mobile-first websites. With the recent release of Bootstrap 5, developers have access to a plethora of new features and improvements, including a revamped component library. One of the standout additions in Bootstrap 5 is the contact card, a versatile and stylish way to display contact information. Let's delve into the intricacies of the Bootstrap 5 contact card, exploring its uses, customization options, and how to implement it in your projects.

37 Free Bootstrap Form Templates You Can Try Right Now
37 Free Bootstrap Form Templates You Can Try Right Now

Before we dive into the specifics of the Bootstrap 5 contact card, let's briefly recap what makes Bootstrap such a powerful tool. Bootstrap is a free and open-source CSS framework and JavaScript library that simplifies the development of responsive, mobile-first websites. It provides a robust set of pre-designed components, like buttons, forms, navigation, and cards, which can be easily integrated into projects. With Bootstrap 5, these components have been updated and improved, offering developers even more flexibility and control.

Profile Card HTML CSS
Profile Card HTML CSS

Understanding the Bootstrap 5 Contact Card

The contact card is a new component introduced in Bootstrap 5, designed to help users quickly and efficiently display contact information. It's perfect for business websites, personal portfolios, or any project where you want to provide easy access to your contact details. The contact card is built using Bootstrap's card component, with additional styles and functionality tailored to contact information.

bootstrap 5 contact card
bootstrap 5 contact card

At its core, the contact card consists of an avatar, a name, and various contact methods, such as email, phone number, and social media links. It's fully responsive, ensuring that it displays beautifully on all devices, from desktop to mobile. Moreover, the contact card is highly customizable, allowing developers to tailor it to their specific needs and design preferences.

Basic Usage and Structure

an image of some type of webpage with many different screenshots on it
an image of some type of webpage with many different screenshots on it

To use the Bootstrap 5 contact card, you'll first need to include the Bootstrap CSS and JavaScript files in your project. Once that's done, you can start building your contact card. The basic structure of a contact card involves wrapping the content in a `.card` div and using specific classes for the avatar, name, and contact methods.

Here's a simple example of a Bootstrap 5 contact card:

<div class="card">
  <img src="path/to/avatar.jpg" alt="Avatar" class="card-img-top">
  <div class="card-body">
    <h5 class="card-title">John Doe</h5>
    <p class="card-text">
      <a href="mailto:john.doe@example.com">Email</a>
      <br>
      <a href="tel:+1234567890">Phone</a>
      <br>
      <a href="https://twitter.com/johndoe">Twitter</a>
      <a href="https://linkedin.com/in/johndoe">LinkedIn</a>
    </p>
  </div>
</div>

Customizing the Contact Card

Animated Profile Card Design in HTML & CSS
Animated Profile Card Design in HTML & CSS

One of the standout features of the Bootstrap 5 contact card is its extensive customization options. You can change the avatar, name, and contact methods to suit your needs. Additionally, you can adjust the card's size, color, and other styling aspects using Bootstrap's utility classes and custom CSS.

For instance, to make the contact card larger, you can add the `.h-100` class to the `.card` div. To change the background color, you can use the `.bg-*` classes. Here's an example of a customized contact card:

<div class="card h-100 bg-light">
  <img src="path/to/avatar.jpg" alt="Avatar" class="card-img-top">
  <div class="card-body">
    <h5 class="card-title">John Doe</h5>
    <p class="card-text">
      <a href="mailto:john.doe@example.com">Email</a>
      <br>
      <a href="tel:+1234567890">Phone</a>
      <br>
      <a href="https://twitter.com/johndoe">Twitter</a>
      <a href="https://linkedin.com/in/johndoe">LinkedIn</a>
    </p>
  </div>
</div>

Advanced Customization and Styling

Contact Form UI Design | Lignt and Dark Mode | Boltstack.dev
Contact Form UI Design | Lignt and Dark Mode | Boltstack.dev

While the basic customization options provided by Bootstrap's utility classes are powerful, sometimes you'll need more control over the styling of your contact card. In these cases, you can use custom CSS to fine-tune the appearance of the card.

For example, you might want to change the font size, color, or style of the name and contact methods. You can do this by targeting the appropriate elements in your custom CSS. Here's an example of how you might change the font size and color of the name and contact methods:

Professional footer design | Custom footer code for websites
Professional footer design | Custom footer code for websites
Vhato - Django Chat App Template
Vhato - Django Chat App Template
two texts are being shared on the same cell phone, one is purple and the other is blue
two texts are being shared on the same cell phone, one is purple and the other is blue
Cliq – Bootstrap 5 Admin Dashboards -NULLED- – NullBulls
Cliq – Bootstrap 5 Admin Dashboards -NULLED- – NullBulls
an image of a web page with the words, you win on it and other icons
an image of a web page with the words, you win on it and other icons
Profile card | HTML & CSS
Profile card | HTML & CSS
20 Beautiful CSS Contact Forms Code Examples - OnAirCode
20 Beautiful CSS Contact Forms Code Examples - OnAirCode
the paypaal app is open and ready to be used by customers on their phone
the paypaal app is open and ready to be used by customers on their phone
an image of a website page with the words our brands on it
an image of a website page with the words our brands on it
Responsive Profile Card using HTML and CSS
Responsive Profile Card using HTML and CSS
a cell phone with a barcode on it and an image of fruit in the background
a cell phone with a barcode on it and an image of fruit in the background
an image of a computer screen with some chat bubbles on it and the text'slow post'highlighted
an image of a computer screen with some chat bubbles on it and the text'slow post'highlighted
Sample 9
Sample 9
the team website is displayed on a dark blue background with black and white text that reads'our services start a project contact us '
the team website is displayed on a dark blue background with black and white text that reads'our services start a project contact us '
Profile card | HTML & CSS
Profile card | HTML & CSS
Henry Lau, Keanu Reeves, Photo To Video
Henry Lau, Keanu Reeves, Photo To Video
a black and white web page with an image of a man's face on it
a black and white web page with an image of a man's face on it
Sign in & Sign up in one page with Luxury Design
Sign in & Sign up in one page with Luxury Design
Digital Business Card | Best Digital Business Card Maker
Digital Business Card | Best Digital Business Card Maker
an iphone screen with the text generator on it and several different types of credit cards
an iphone screen with the text generator on it and several different types of credit cards

.card .card-title {
  font-size: 1.5rem;
  color: #333;
}

.card .card-text a {
  font-size: 1rem;
  color: #666;
}

Adding Icons to Contact Methods

To enhance the visual appeal of your contact card, you can add icons to the contact methods. Bootstrap 5 includes a comprehensive set of icons that you can use for this purpose. To add an icon to a contact method, you can use the `` tag with the appropriate icon class. Here's an example of how you might add icons to the email and phone number contact methods:

<p class="card-text">
  <a href="mailto:john.doe@example.com">
    <i class="fas fa-envelope"></i> Email</a>
  <br>
  <a href="tel:+1234567890">
    <i class="fas fa-phone"></i> Phone</a>
  <br>
  <a href="https://twitter.com/johndoe">Twitter</a>
  <a href="https://linkedin.com/in/johndoe">LinkedIn</a>
</p>

Responsive Design and Mobile Optimization

One of the key features of Bootstrap is its responsive design, which ensures that your website looks great on all devices. The contact card is no exception to this rule. It's designed to be fully responsive, with the avatar and name stacking on top of each other on smaller screens.

However, you can further customize the responsive behavior of the contact card using Bootstrap's responsive utility classes. For example, you can use the `.d-none` class to hide the avatar on extra small screens. Here's an example of how you might do this:

<img src="path/to/avatar.jpg" alt="Avatar" class="card-img-top d-none d-sm-block">

In conclusion, the Bootstrap 5 contact card is a versatile and stylish way to display contact information on your website. With its extensive customization options and responsive design, it's a powerful tool for developers looking to create engaging and user-friendly websites. Whether you're building a personal portfolio, a business website, or any other type of project, the Bootstrap 5 contact card is a valuable addition to your development toolkit. So, why not give it a try in your next project and see the difference it can make? Happy coding!