Changing the Size of an Image

If you need the image to be a certain size or just need to shrink it, you can add in attributes to change the size of the image. Remember that changing the height and weight in the code will not keep the image in the same proportions automatically, so make sure that if you put in a different size that it will not distort the image. Using this method will not change the file size of the image, for more information on helping your page's load time by decreasing the file size of images please read our article on helping your images load faster.

We will start with our code from the last section:

<img src=&quot;Images/image.jpg&quot; align=&quot;middle&quot;>

To change the width and height of the image, you will need to use the width and height tags:

width="___"

height="___"

Now we will insert the tags into our code, putting in the width and height that we want the image to be (in pixels):

The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.

How did you find this article?

Please tell us how we can improve this article:

Email Address

Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!