Bootstrap 5 Hero Banner with Image

Submit By webmaster 2 years ago in bootstrap category
Tags: bootstrap-5hero-banner
Bootstrap 5 Hero Banner with Image and CTA button. The banner image is cropped. All credit goes to getbootstrap.com.
Preview HTML CSS JavaScript Resources
<div class="container my-5"> <div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg"> <div class="col-lg-7 p-3 p-lg-5 pt-lg-3"> <h1 class="display-4 fw-bold lh-1">Hero Banner Heading</h1> <p> Hero Banner paragraph text - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p> <div class="d-grid gap-2 d-md-flex justify-content-md-start mb-4 mb-lg-3"> <button type="button" class="btn btn-primary btn-lg px-4 me-md-2 fw-bold">Primary CTA</button> </div> </div> <div class="col-lg-4 offset-lg-1 p-0 overflow-hidden shadow-lg"> <img class="rounded-lg-3" src="https://picsum.photos/seed/picsum/200/300" alt="" height="400" width="720"> </div> </div> </div>
@import url('https://fonts.googleapis.com/css2?family=Sen:wght@400;700;800&display=swap'); body { font-family: 'Sen', sans-serif; }
Bootstrap = 5.1.3

Download Bootstrap 5 Hero Banner with Image snippet code.

This HTML, CSS, JavaScript and Bootstrap snippet is free (open-source) hence you can use it in your project. You can modify the above editor code and see the live update. You can also download the modify code. Feel free to play with Bootstrap 5 Hero Banner with Image snippet code. If you like it then don't forget to share this code with your friends.

Free code snippet playground

Let's share the example by using HTML, CSS, JavaScript and Bootstrap.

Add New Snippet