"Alert boxes and icons bootstrap 5.1.3"
Bootstrap 4.1.1 Snippet by BrCodeSnippets

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html lang="pt-br" dir="ltr"> <head> <meta charset="utf-8"> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> </head> <body> <!-- created by @BrCodeSnippets --> <!-- https://www.codesnippets.dev.br/post/alert-boxes-customizados-com-icones-bootstrap-5 --> <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> </body> </html>

Related: See More


Questions / Comments: