I can't set the width and height of an image using unsplash
P粉5202040812023-09-15 19:40:40
0
1
472
This is the html code... enter image description here
I tried changing the width multiple times...restarted VS-code multiple times and I still can't change the width. Every time the page is refreshed it gives a random size
Containing "random" in the URL means that the image will be served randomly
300x300 refers to the image width and height
If you want images with different widths and heights, change these values in the URL. For example: If you wanted an image with a width of 900 pixels and a height of 600 pixels, the url would be:
The link you used for the image source says it all.
If you want images with different widths and heights, change these values in the URL. For example: If you wanted an image with a width of 900 pixels and a height of 600 pixels, the url would be: