Images
Angular Bootstrap 5 Images
Documentation and examples for opting images into responsive behavior (so they never become larger than their parent elements) and add lightweight styles to them—all via classes.
Responsive images
Images in MDB are made responsive with .img-fluid
. This applies
max-width: 100%;
and height: auto;
to the image so that it scales
with the parent element.
Thumbnails
In addition to our
border-radius utilities, you can use
.img-thumbnail
to give an image a rounded 1px border appearance.
Shadows
By using our
shadow classes you can add a shadow to
the image. In the example below, we add shadow-2-strong
class.
By adding .hover-shadow
class to the element you can apply a shadow hover effect.
Masks
You can cover the image with mask to achieve the desired contrast and for example, place text on it.

Can you see me?
Hover effects
By using .hover-overlay
class you can apply gentle and decorative
hover effects to the image.
Shapes
By using border utilities you can change the shape of the image.
.rounded

.rounded-circle

.rounded-pill
