PDA

View Full Version : Lose spacing between JPG-links


tijmen_4real
07-17-2009, 11:22 AM
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? :confused:

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:

Brian
07-17-2009, 11:29 AM
Try wrapping <div> </div> tags around those two images in your first table cell, remove the <br/> tag, and that should fix the problem.

Our Sponsors
 

tijmen_4real
07-17-2009, 01:09 PM
Yes, removing the <br/> seems to take away the big white spacing. But using the <div> tags doesn't change anything. There is still some spacing between the left two ads. Usually, i would remove any through css styling of the <a> tags, but i wouldn't know how to do it in this situation? Can this be done inline?

And, how can i make the header of the module (with the title in it -> blue rectangle) go over the full witdh?