Skip to content
← Back to Community
how to do you resize a picture?
Profile icon
gerrardwrx

I'm doing my first challenge and i've used the picture provided for the challenge, would anyone be willing to give some tips on how to resize a picture so its smaller https://repl.it/@gerrardwrx/Sally-Student-Resume

Answered by EthanJustice [earned 5 cycles]
View Answer
Voters
Profile icon
ArnavSharma35
Profile icon
MaddieDyer
Profile icon
StevenSimpson3
Profile icon
OliviaDekker
Profile icon
JosefineYtterga
Profile icon
OscarChaplin
Profile icon
CharlieCrafton
Profile icon
AravBhardwaj3
Profile icon
Surya-pratappr2
Profile icon
AmierAl
Comments
hotnewtop
Profile icon
EthanJustice

Take a look at this. Try using a height or width attribute to set the size of the picture. That's just a hint! If you need more just ask!

Profile icon
gerrardwrx

@EthanJustice thank you so much

Profile icon
EthanJustice

@gerrardwrx Yeah no problem!

Profile icon
AmandaAhern

@EthanJustice ya i need more help

Profile icon
EthanJustice

@AmandaAhern Set your image element to
<img src="https://m.media-amazon.com/images/M/[email protected]_V1_.jpg" alt="student" height="100px" width="100px" />

Change the values within the height and width attributes into whatever your like, such as 50px or 2cm. See the MDN on Pixels or the Width and Height section on the previous link. Hope this helps, and apologies for the late reply. If you need any more information feel free to ask!

Profile icon
AmandaAhern

@EthanJustice Thank you so much!

Profile icon
AmandaAhern

@EthanJustice how do make an image a backround?

Profile icon
EthanJustice
Profile icon
AlexHall2

so helpful
@EthanJustice

Profile icon
PoppyShacklefor

@EthanJustice Thank you so much now it works!! YAY 😁

Profile icon
proto1250
Profile icon
AravBhardwaj3

hi

Profile icon
ahsir

thank you so much

Profile icon
Yoesh

I dont
know