the above image is set its default size on container and if you want to set the specific size of the image then bootstrap 5 provide class the set the size of image like as,
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Responsive Image on container in bootstrap 5
You can set the default size of image on <div> container in your design page of your website page by using the following bootstrap code,
the above image is set its default size on container and if you want to set the specific size of the image then bootstrap 5 provide class the set the size of image like as,
h-100 is use to set the 100% height of image and w-100 is used for 100% width of image