...

View Full Version : Resizing image Percent (%) in HTML.



Racer
03-14-2005, 12:31 AM
Hi, How do I resize an image in HTML by percent (%)?

Thanks!

codejunkie
03-14-2005, 12:50 AM
<img src="url of picture" height="x%" width="x%">

I dont know why youd want to use percent though, pixels are more accurate

Graft-Creative
03-14-2005, 12:54 AM
Unless there's a particularly compelling need for you to do this - your images should be the exact same dimensions as they are going to appear on screen, otherwise you are just wasting bandwidth and trying people's patience.

Gary



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum