Quantcast
Channel: is it possible to decide height and width of a image? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Deleteman for is it possible to decide height and width of a image?

$
0
0

You can set the width and height attributes of the image tag, like so:

<img src="../image/path" width="100" height="100" />

Also notice that using only one of those attributes, will resize the image keeping the aspect ratio, which will prevent the image from looking distorted.


Viewing all articles
Browse latest Browse all 6

Trending Articles