VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/how-to-make-div-that-contains-images-to-have-fixed-size-using-bootstrap/

⇱ How to make div that contains images to have fixed size using Bootstrap ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to make div that contains images to have fixed size using Bootstrap ?

Last Updated : 25 Dec, 2020

In this article, we will see how we can make a div that will contain images having a fixed size. This can be very helpful when designing a webpage for displaying a certain type of product. We will use bootstrap to implement the solution for the above problem.

Bootstrap CDN link: https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css

Example: Now let us see it with the help of an example.

In the above code, we can add multiple rows and also multiple images in the same row, and the size of all images will remain the same.

Output:

👁 Image
Comment

Explore