How to set the responsive image on container in bootstrap 5?
How to set the responsive image on container in default size of image in bootstrap 5?
I completed my post-graduation in 2013 in the engineering field. Engineering is the application of science and math to solve problems. Engineers figure out how things work and find practical uses for scientific discoveries. Scientists and inventors often get the credit for innovations that advance the human condition, but it is engineers who are instrumental in making those innovations available to the world. I love pet animals such as dogs, cats, etc.
Manish Sharma
04-Jan-2022Responsive 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