
Jason
Staff
/ Moderator

Jan 2, 2012, 9:38 AM
Post #2 of 2
(190 views)
Shortcut
|
|
Re: [RapidWeb] Remove hyphen link betwee images
[In reply to]
|
Can't Post
|
|
Hi, Those lines seem to be a continuation of each link. This is probably being caused by extra white space between each link. Try this code:
<div align="center"> <?php foreach ($hotelsRecord['images'] as $upload): ?> <?php if ($upload['hasThumbnail']): ?> <a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[images]" title="<?php echo $upload['info1'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight']?>" /></a> <?php elseif ($upload['isImage']): ?> <a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[images]" title="<?php echo $upload['info1'] ?>"><img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" /></a> <?php else: ?> <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a> <?php endif ?> <?php endforeach ?> </div> Hope this helps --------------------------------------------------- Jason Sauchuk - Programmer interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|