Log In · Register

 
Resize Picture
MikeG003
post Mar 24 2008, 11:24 AM
Post #1


Senior Member
***

Group: Member
Posts: 32
Joined: Jul 2007
Member No: 548,902



I looked in the scripts and didnt find anything that worked. Can anyone help me with a code to resize pics in my profile.
 
 
Start new topic
Replies (1 - 2)
weed
post Mar 24 2008, 12:22 PM
Post #2


Hablamos Español.
******

Group: Official Member
Posts: 1,283
Joined: Jul 2007
Member No: 549,364



So, to change the size of the image, your going to add these two commands inside the image tag:
CODE
width=" " and height=" "


Your going to place the commands after the initial command, IMG SRC="picture.jpg". The tag will now look like this:

CODE
<IMG SRC="next.jpg" width=" " height=" ">


Now, to make the image smaller, your going to place numbers inside those quotation marks. Well, let's say you wanted it to be 75 pixels wide and 40 pixels high. You would then place these numbers into the commands, like this:

CODE
<IMG SRC="next.jpg" width="75" height="40">


Now, the picture will be the new height and width you specified.

--------------------------------------------------------------------

Now, to make the image larger, we will just insert larger numbers for the width and height:

CODE
<IMG SRC="next.jpg" width="300" height="200">


that should help.

and if it doesnt PM me and we'll work on it.
 
tokyo-rose
post Mar 24 2008, 03:41 PM
Post #3


Senior Member
********

Group: Head Staff
Posts: 18,173
Joined: Mar 2005
Member No: 108,478



Yes, Suzie is right. Or you can just do either width or height, not both, in case you don't want to mess up how the smaller version looks:

CODE
<img src="imgurlhere" width="100px">

If you use that, the height will resize in proportion to the width and your picture will still look normal.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: