![How do i make the image fit perfectly and how do i insert the text inside the photo, currently it looks like this. : r/webdev How do i make the image fit perfectly and how do i insert the text inside the photo, currently it looks like this. : r/webdev](https://preview.redd.it/how-do-i-make-the-image-fit-perfectly-and-how-do-i-insert-v0-ksos44dsi5ub1.png?width=1080&crop=smart&auto=webp&s=65058b9106dc338c10d12cdaa41e9291388610fa)
How do i make the image fit perfectly and how do i insert the text inside the photo, currently it looks like this. : r/webdev
![Image fitting the dimensions of a container - HTML & CSS - SitePoint Forums | Web Development & Design Community Image fitting the dimensions of a container - HTML & CSS - SitePoint Forums | Web Development & Design Community](https://global.discourse-cdn.com/sitepoint/original/3X/d/7/d74deca49cb900c150da2568cf4cf7db619c8350.png)
Image fitting the dimensions of a container - HTML & CSS - SitePoint Forums | Web Development & Design Community
![How to make the content fit the container by automatically changing the font-size? - HTML-CSS - The freeCodeCamp Forum How to make the content fit the container by automatically changing the font-size? - HTML-CSS - The freeCodeCamp Forum](https://global.discourse-cdn.com/freecodecamp/original/3X/0/5/052e7a97457c0ebf0ac6ca17196ad0832efb20d8.jpeg)
How to make the content fit the container by automatically changing the font-size? - HTML-CSS - The freeCodeCamp Forum
![CSS Trick: How to Object-fit an Image inside its Container Element in the Open Event Front-end | blog.fossasia.org CSS Trick: How to Object-fit an Image inside its Container Element in the Open Event Front-end | blog.fossasia.org](https://i0.wp.com/blog.fossasia.org/wp-content/uploads/2017/07/object-fit.png?fit=483%2C128&ssl=1)
CSS Trick: How to Object-fit an Image inside its Container Element in the Open Event Front-end | blog.fossasia.org
Map does not fit its html container when used in a modal window or a collapsable div · Issue #1363 · maplibre/maplibre-gl-js · GitHub
![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
![html - Stretch half an image to fit in a div and half overflow in mobile and half image display in half portion of div in desktop? - Stack Overflow html - Stretch half an image to fit in a div and half overflow in mobile and half image display in half portion of div in desktop? - Stack Overflow](https://i.stack.imgur.com/cJBS2.png)
html - Stretch half an image to fit in a div and half overflow in mobile and half image display in half portion of div in desktop? - Stack Overflow
![html - Image not fitting properly inside container and switching of image is not responding (Responsiveness) - Stack Overflow html - Image not fitting properly inside container and switching of image is not responding (Responsiveness) - Stack Overflow](https://i.stack.imgur.com/iB2Em.png)
html - Image not fitting properly inside container and switching of image is not responding (Responsiveness) - Stack Overflow
![html - Centered text overlay on image that is object-fit & object-position (CSS GRID) - Stack Overflow html - Centered text overlay on image that is object-fit & object-position (CSS GRID) - Stack Overflow](https://i.stack.imgur.com/KLdgl.png)