![Help, img doesn't auto fit in div container on certain width - HTML & CSS - SitePoint Forums | Web Development & Design Community Help, img doesn't auto fit in div container on certain width - HTML & CSS - SitePoint Forums | Web Development & Design Community](https://global.discourse-cdn.com/sitepoint/original/3X/e/3/e32075225c6b9699afa000b62f8f62a5375370dc.jpeg)
Help, img doesn't auto fit in div container on certain width - HTML & CSS - SitePoint Forums | Web Development & Design Community
![Pradeep Pandey on Twitter: "2. Resize Images to fit a div Container → You can resize an image to fit a div container using the height, width, and object-fit properties. https://t.co/M3vvFJyrPy" / Pradeep Pandey on Twitter: "2. Resize Images to fit a div Container → You can resize an image to fit a div container using the height, width, and object-fit properties. https://t.co/M3vvFJyrPy" /](https://pbs.twimg.com/media/FT_9fH5UUAAEkcA.png)
Pradeep Pandey on Twitter: "2. Resize Images to fit a div Container → You can resize an image to fit a div container using the height, width, and object-fit properties. https://t.co/M3vvFJyrPy" /
![javascript - How to tightly wrap a div around an image, but also resize the image to fit a content area if resolution is larger than content area? - Stack Overflow javascript - How to tightly wrap a div around an image, but also resize the image to fit a content area if resolution is larger than content area? - Stack Overflow](https://i.stack.imgur.com/dzHpo.png)
javascript - How to tightly wrap a div around an image, but also resize the image to fit a content area if resolution is larger than content area? - Stack Overflow
![Simple CSS Solutions: How to fit images with different dimensions in set containers | by Kimberly Luu | Medium Simple CSS Solutions: How to fit images with different dimensions in set containers | by Kimberly Luu | Medium](http://jonathannicol.com/cms/wp-content/uploads/2014/06/cropped-thumbnails.png)