0

how do I change the size of a photo??? it just doesn't fit on a web page.

27th Jul 2021, 1:20 PM
iking л
2 Réponses
+ 6
In <img> tag, there are the attributes called width and height, use those attributes! Note : first complete HTML then you will know more about it! Tips: - Give related tags - First complete HTML Sample Code : https://code.sololearn.com/WVPh9RM3cE64/?ref=app
27th Jul 2021, 1:25 PM
Abhiyantā
Abhiyantā - avatar
0
If your image shrink or stretch in img tag due to setting your choice of width and height on img tag u can use following css properties to fit the image img{ object-fit:cover; object-position:center; }
27th Jul 2021, 1:42 PM
Divya Mohan
Divya Mohan - avatar