Login form with background image
Bootstrap 5 Login form with background image component
Responsive Login form with background image built with Bootstrap 5. Thanks to this tutorial, you will learn how to add a background image to your login form.
Basic example
You can do it in 2 ways:
- Add
background-image
via inline CSS. Define the background height. Add.bg-image
class to scale the image properly and enable responsiveness. More information can be found here. - Add
<img src="">
element to your div with.bg-image
class. Define the image height.
You can also add a mask to your background image. If you want to use a few colors, use the gradient generator.
.jpg)