Adscend

Click Here



Click Here



Click Here

Sunday 8 September 2013

Image Resize

HTML Image Resize




If the image is very large, set height attribute to shrink actual image. But, it takes extra time or bandwidth to download the image, because actual big image will load and then shrink. So, it is good idea that resize big image through image editor like Photoshop.
Example: 1
<html>
<head>
</head>
<body>
<img src="image1.gif"/>
</body>
</html>
Output

If you want to resize the image, like height or width, you need to specify only height attribute.
Example: 2
<html>
<head>
</head>
<body>
<img  src="image1.jpg" height="100">
</body>
</html>
Output

Here “height=100” indicates 100 pixels.





No comments:

Post a Comment