PDA

View Full Version : Lose spacing between JPG-links


tijmen_4real
07-17-2009, 02:20 PM
Hi,

I made a custom CMPS-module, with 3 JPG's performing as links:

<tr>
<td class="$bgclass" width="50%">
<!-- Banner 1: Heemskerk Hyves -->
<a href="http://gekopgroenten.hyves.nl" target="_blank"><img src="http://www.deorvanheemskerk.nl/banners/banner1.jpg" border="0"/>
</a>
<!-- regel vrij naar volgende banner -->
<br/>
<!-- Banner 2: SoldaatMuis -->
<a href="http://www.soldaatmuis.com" target="_blank"><img src="http://www.deorvanheemskerk.nl/banners/banner2.jpg" border="0"/>
</a>
</td>
<td class="$bgclass" width="50%" rowspan="2">
<!-- Banner 3: hier adverteren? -->
<a href="http://www.deorvanheemskerk.nl/sendmessage.php" target="_blank"><img src="http://www.deorvanheemskerk.nl/banners/banner3.jpg" border="0"/>
</a>
</td>
</tr>

I can't use the main <table> tag, but only the <td> and <tr>, for the module wrapper template.

But, the module gives some unwanted spacing/padding between the links, see the attachments.

Also, the top blue rectangle seems to stop in IE, but go on over the full width in FF? :S

I want them both to be like the FF printscreen, but without the spacing between the left ads.

How does the HTML has to be?
Greetz,

tijmen_4real :cool:

Lynne
07-17-2009, 03:02 PM
Cellpadding and cellspacing are table attributes. If you can't modify the table tag, I suppose you can put all your images in it's own table in one of the columns for the unalterable table. Then set the cellpadding and cellspacing to 0 in your own table.