Why no size | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
23rd Jul 2023, 2:57 PM
RocketLover
7 Answers
24th Jul 2023, 2:57 PM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 3
RocketLover , To make the image smaller, you can use the 'height' and 'width' attributes in the `img` tag. Like this.... method 1 without CSS :- <img src = "https://api2.sololearn.com/v2/certificates/CC-UKIVWCDS/image/png"width="50%" height="50%"> method 2 with CSS:- add this in css section.. img{ display:flex; height:100%; width:100%; }
23rd Jul 2023, 3:19 PM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 3
Set the width to 100% img { width: 100%; }
23rd Jul 2023, 4:25 PM
Leeroy Mokua
Leeroy Mokua - avatar
+ 2
Set the width and height to 100% and it will cover the document after it is loaded.... img { width: 100%; height: 100%; }
24th Jul 2023, 6:31 PM
^^^WILL_gamerz^^^
^^^WILL_gamerz^^^ - avatar
+ 2
set height and width to make image smaller
25th Jul 2023, 1:02 PM
JS Nihal
JS Nihal - avatar
+ 2
Koli You sent your code yourself
25th Jul 2023, 1:06 PM
<?null>
<?null> - avatar
+ 1
How so I make it smaller
23rd Jul 2023, 2:57 PM
RocketLover