max-width property and PHP
Hi guys,
Would you please show me how to apply the max-width property (or whatever is necessary) to the following code, so that the display of all size images will be limited to fit within a box 240X320, but still remain proportional to their actual size?
Code:
<div style=" padding-top:<?php echo($DownFromTop); ?>px;"><?php echo($ImageDisplay); ?></div>
The code is for the following page of a site I work on... Promotional cell-phone screensaver
When a large image like 640X960 (for the iPhone) is generated, its display on the following page must be made to fit within the 240X320 display box, but everything I've tried hasn't worked.
Thanks,
Kenny