Bootstrap snippet and html example. Alert boxes and icons bootstrap 5 bootdey

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 5.1.3 included, to get the result that you can see in the preview selection

 <!-- created by @BrCodeSnippets -->
  <!-- https://www.codesnippets.dev.br/post/alert-boxes-customizados-com-icones-bootstrap-5 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
  <div class="container mt-3 pt-3">
    <div class="row g-3">
      <div class="col-12 col-sm-6 col-lg-4">
        <div class="rounded-3 border-start border-4 border-primary alert-primary shadow h-100">
          <span class="bi bi-cart4 fs-1 m-4 float-start"></span>
          <div class="text-end p-4">
            <span class="d-block text-dark"> A simple text example</span>
            <span class="text-dark fs-3">Total 18.85</span>
          </div>
        </div>
      </div>

      <div class="col-12 col-sm-6 col-lg-4">
        <div class="rounded-3 border-start border-4 border-warning alert-warning shadow h-100">
          <span class="bi bi-columns-gap fs-1 m-4 float-start"></span>
          <div class="text-end p-4">
            <span class="d-block text-dark"> A simple text example</span>
            <span class="text-dark fs-3">Total 18.85</span>
          </div>
        </div>
      </div>

      <div class="col-12 col-sm-6 col-lg-4">
        <div class="rounded-3 border-start border-4 border-danger alert-danger shadow h-100">
          <span class="bi bi-people fs-1 m-4 float-start"></span>
          <div class="text-end p-4">
            <span class="d-block text-dark"> Customers</span>
            <span class="text-dark fs-3">Total 953</span>
          </div>
        </div>
      </div>

      <div class="col-12 col-sm-6 col-lg-4">
        <div class="rounded-3 border-start border-4 border-secondary alert-secondary shadow h-100">
          <span class="bi bi-chat fs-1 m-4 float-start"></span>
          <div class="text-end p-4">
            <span class="d-block text-dark"> Support</span>
            <span class="text-dark fs-3">Total 25</span>
          </div>
        </div>
      </div>

      <div class="col-12 col-sm-6 col-lg-4">
        <div class="rounded-3 border-start border-4 border-success alert-success shadow h-100">
          <span class="bi bi-wallet fs-1 m-4 float-start"></span>
          <div class="text-end p-4">
            <span class="d-block text-dark"> wallet</span>
            <span class="text-dark fs-3">Total 2000</span>
          </div>
        </div>
      </div>

      <div class="col-12 col-sm-6 col-lg-4">
        <div class="rounded-3 border-start border-4 border-info alert-info shadow h-100">
          <span class="bi bi-file-earmark fs-1 m-4 float-start"></span>
          <div class="text-end p-4">
            <span class="d-block text-dark"> A simple text reports</span>
            <span class="text-dark fs-3">Total 18.85</span>
          </div>
        </div>
      </div>

      <div class="col-12">
        <div class="rounded-3 border-start border-4 border-dark bg-dark shadow h-100">
          <span class="bi bi-heart fs-1 m-4 text-white float-start"></span>
          <div class="text-end p-4 text-white">
            <span class="d-block"> Favorited</span>
            <span class="fs-3">1000</span>
          </div>
        </div>
      </div>
    </div>
  </div>

CSS code

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 5.1.3 included, to get the result that you can see in the preview selection

body{margin-top:20px;}

Similar snippets

Bootstrap example and template. bs4 blog post image

bs4 blog post image

Bootstrap example and template. New comments and popular post list

New comments and popular post list

Bootstrap example and template. Animated Testimonial Slider

Animated Testimonial Slider

Bootstrap example and template. bs4 simple social network post

bs4 simple social network post

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. bs5 edit profile account details

bs5 edit profile account details

Bootstrap example and template. bs4 Manage Addresses page

bs4 Manage Addresses page

Bootstrap example and template. product list

product list

Bootstrap example and template. Alert boxes and icons bootstrap 5 bootdey

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 291 views, Using this bootstrap snippet you have the following benefits:

Bootstrap 5.1.3

<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.1.3 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