0

Image too wide

I was making a html file in with react's logo as background by setting a img tag with following css: position:fixed; width:100%; height:100%; but it was too wide. When I resized the browser it was fine. I managed to take a screenshot of it: https://www.dropbox.com/s/qp2s2lk2mtabj72/Screenshot_2021-01-16%20React%20App.png?dl=0 Is there a way to resize the image when the browser is resized to make the image stay same.

16th Jan 2021, 12:19 PM
Aradhay Mathur
Aradhay Mathur - avatar
2 Respuestas
+ 1
Just change the percentage of height and width or write both of it in terms of pixels
16th Jan 2021, 12:28 PM
Atul [Inactive]