john0611
08-17-2009, 06:24 PM
Hi all,
Any ideas on how to constrain images echoed from DB via directory:
Here is the source:
<a href="<?php echo $_SERVER['BASE_NAME']; ?>img/galleries/drawings/<?php echo $row['Filename']; ?>" rel="lightbox" title="<?php echo $row['Caption']; ?>"><img src="img/galleries/drawings/thumbs/<?php echo $row['Filename']; ?>" alt="<?php echo $row['Caption']; ?>" title="<?php echo $row['Caption']; ?>" width="120" height="120" /></a>
Problem is I need the box to remain in its dimensions, but have the image resize with out being distorted.
Any ideas? thanks for any help and suggestions.
Any ideas on how to constrain images echoed from DB via directory:
Here is the source:
<a href="<?php echo $_SERVER['BASE_NAME']; ?>img/galleries/drawings/<?php echo $row['Filename']; ?>" rel="lightbox" title="<?php echo $row['Caption']; ?>"><img src="img/galleries/drawings/thumbs/<?php echo $row['Filename']; ?>" alt="<?php echo $row['Caption']; ?>" title="<?php echo $row['Caption']; ?>" width="120" height="120" /></a>
Problem is I need the box to remain in its dimensions, but have the image resize with out being distorted.
Any ideas? thanks for any help and suggestions.