BBS5 Images
Learn about Bootstrap 5 image classes.
BS5 Images
Bootstrap 5 provides classes to style images.
Image Shapes
.roundedadds rounded corners to an image.rounded-circleshapes the image to a circle.img-thumbnailshapes the image to a thumbnail (border)
Aligning Images
Float an image to the right with the .float-end class or to the left with .float-start.
Center an image by adding the utility classes .mx-auto (margin: auto) and .d-block (display: block) to the image.
Responsive Images
Images come in all sizes. So do screens. Responsive images automatically adjust to fit the size of the screen.
Create responsive images by adding an .img-fluid class to the <img> tag. The image will then scale nicer to the parent element.
Examples
Rounded Image
html/cssCircle Image
html/cssThumbnail Image
html/css