Log in

View Full Version : Image size...



pavmoxo
07-18-2006, 03:52 PM
When I give percentages to an image, it doesn't appears. Why?? How can I fix it??

<img src="<?php echo $arr["imagem"]; ?>" width='20%' height='20%' border="0">

jscheuer1
07-18-2006, 04:22 PM
Unless this is php specific, percentages used with images usually just set it to a percentage of the dimensions of the parent (containing) element. If that has 0 height and width, the image will have 0 height and width.