Skip to content
← Back to Community
How Do I change picture size?
Profile icon
Pizzaz4me

How do I change the dimensions of the picture on the website. I uploaded 2 images but they are really big so I wanted to decrease the size but I couldn't figure out how to. So how do I change the picture size?

Answered by Squirrel777 [earned 5 cycles]
View Answer
Voters
Profile icon
NEHASARAVIYA
Profile icon
Pizzaz4me
Comments
hotnewtop
Profile icon
Coder100
<img src="..." width="<WIDTH>">

you also have a height attribute, but be wary of aspect ratio.

Profile icon
Pizzaz4me

it doesn't work @Coder100

Profile icon
Pizzaz4me

and how do I position the images @Coder100

Profile icon
Squirrel777

@PlaySoccer To position the images, add this to HTML:

<img src="yourImage.png" width="25px" height="25px" id="myImage"> <!--You can change the width and height!-->

And to the CSS file:

#myImage { position: relative; top: 100px; left: 200px; }

That should work! I would recommend this extension. Makes it easier to locate coordinates

Profile icon
Pizzaz4me
Profile icon
Squirrel777
Profile icon
Kookiez

you can do

<img src = 'example.png' height = '40px' width = '20px'>

replace the numbers with the lengths you want them to be, like changing 40 to 100 or whatever.