- 3
how do you make a image large
1 Answer
+ 1
If you want to stretch an image in a web page, you can use CSS properties.
The following are great if you want a background-image to cover or be tightly contained within a div or other block-type element:
background-size: cover;
or
background-size: contain;
Both of those will maintain aspect ratio of the source image.
For img elements, you could use CSS properties like width and height. I recommend only controlling 1 of the 2 dimensions to let the browser maintain aspect ratio of the image.