+ 1

HTML

How I can chage the height and width of the image ?

15th Sep 2024, 11:03 AM
Priyanshu Garg
Priyanshu Garg - avatar
4 Respostas
+ 4
Priyanshu Garg add something like this and change the 250px to desired size <img src="your image url" alt="your image" style="width:250px;height:250px;">
15th Sep 2024, 2:50 PM
BroFar
BroFar - avatar
+ 1
You can also use the height and width attributes to scale the image. The default units are px. <img src=“image path” alt=“text about image” width=“100” height=“100” />
15th Sep 2024, 8:20 PM
Junior
Junior - avatar
0
In css file: img { width : 32px; height : 30px; }
16th Sep 2024, 9:29 AM
Fateme Biglari
Fateme Biglari - avatar