« Web, HTML, Tech Forum

change image size on profile

hey y'all!

after i finally figured out how to add pictures to my page i ran into the problem of the size.... they were huge, on mobile and pc!
i would really appreciate it if someone could give me a coding prompt to work against this problem. 
thanks in advance!


Report Topic

3 Replies

Sort Replies:

Reply by NosyCat

posted

You can set the size of an image with width="..." and height="..." on the img tag, or else from CSS with width: and height: (remember to add units in this case, probably px). Hope this helps!


Report Reply

Reply by ariel lee ♥

posted

are you uploading them to imgur first? once it's on imgur you can choose the size that works best.


Report Reply

Reply by Div

posted
updated

Almost all the time width="100%" does the trick. Just add it to the image tag like:

<img src="IMAGE_URL_HERE" width="100%" />


Report Reply