Bootstrap snippet and html example. Custom alert boxes

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

  <div class="container mt-3 pt-3">
<div class="row">
<div class="col-12">
  <div class="border-start border-4 border-primary ps-3 p-3 my-3 alert-primary shadow" role="alert">
A simple shadow primary alert—check it out!
</div>
<div class="border-start border-4 border-secondary ps-3 p-3 my-3  alert-secondary" role="alert">
A simple secondary alert—check it out!
</div>
<div class="border-start border-4 border-success ps-3 p-3 my-3  alert-success" role="alert">
A simple success alert—check it out!
</div>
<div class="border-start border-4 border-danger ps-3 p-3 my-3  alert-danger shadow" role="alert">
A simple danger alert—check it out!
</div>
<div class="border-start border-4 border-warning border-end ps-3 p-3 my-3  alert-warning" role="alert">
A simple warning alert—check it out!
</div>
<div class="border-start border-4 border-info ps-3 p-3 my-3  alert-info" role="alert">
A simple info alert—check it out!
</div>
<div class="border-start border-4 border-dark ps-3 p-3 my-3  alert-light" role="alert">
A simple light alert—check it out!
</div>
<div class="border-start border-4 border-end border-secondary ps-3 p-3 my-3  alert-dark" role="alert">
A simple dark alert—check it out!
</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. notes

notes

Bootstrap example and template. Bootstrap 4 credit card payment form

Bootstrap 4 credit card payment form

Bootstrap example and template. Invoice with ribbon

Invoice with ribbon

Bootstrap example and template. list with description

list with description

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. services section page

services section page

Bootstrap example and template. Responsive login with social buttons

Responsive login with social buttons

Bootstrap example and template. Gradients dashboard cards

Gradients dashboard cards

Bootstrap example and template. Custom alert boxes

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 232 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