Does firefox not accept % when declaring the height/width of an image.
Im using this code (I know its ugly and should just make the whole line php to get rid of all those tags but Ill do that later :P)
PHP Code:
<span class="newsImage">
<? if ($row['image']!=""){?><img width="<?php echo $row['imgsize']; ?>" height="<?php echo $row['imgsize']; ?>" src="<?php echo $row['image']; ?>"><?php } ?>
</span>
Basically i set "imgsize" in the database and it is equal to "50%" or "100%" or w/e I decide. Now this works fine with IE but doesnt work with FF, although if I remove the % and just make it a fixed number then it works.
Any thoughts? 
Last edited by Truly : 02-21-2008 at 04:10 PM.
|