0
how do I change the size of a photo??? it just doesn't fit on a web page.
2 Respuestas
+ 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
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;
}