Bootstrap Images

Bootstrap provides helpful utility classes to make images responsive, rounded, aligned, and styled—without custom CSS.

Here’s a complete guide 👇


📌 1. Responsive Image

Use .img-fluid to make images scale nicely with the page.


✔ Automatically fits the container
✔ Maintains aspect ratio


🖼 2. Rounded & Styled Images

Bootstrap includes built-in border-radius classes.


ClassEffect
.roundedSoft corners
.rounded-circleMakes image circular (if square)
.img-thumbnailGives border + padding

🎯 3. Image Alignment

Center Image


Float Images


Clear Floats



↔️ 4. Responsive Alignment with Breakpoints


✔ Center on small screens
✔ Float right on medium+ screens


📁 5. Image in Cards (Common Use)



🌄 6. Responsive Image Gallery Example



📍 7. Figure Image with Caption

Bootstrap supports semantic <figure> tags.



🎉 Summary Table

FeatureClass
Responsive Imageimg-fluid
Rounded Cornersrounded
Circle Imagerounded-circle
Border Imageimg-thumbnail
Centermx-auto d-block
Float Left/Rightfloat-start, float-end
Caption Supportfigure, figure-caption

You may also like...