PDA

View Full Version : Making a header table a link to forum.php


henners
Tue 12th Sep '06, 6:24pm
Any help would be really great! This is part of our current header template for one of our styles:

<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->
<div align="center"><table width="80%" border="0" cellpadding="0" cellspacing="0" background="/images/002/header/xv3_design4_bg.jpg">
<tr>
<td><img src="/images/002/header/xv3_design4_a.jpg" /></td>
<td>&nbsp;</td>
</tr>
</table></div>

This code produced the following header:

http://www.vbulletin.com/forum/attachment.php?attachmentid=20464&stc=1&d=1158096132

Now a couple of our forum members would like this to be clickable, linking back to the forum.php page. How would I go about modifying the above code to make this possible? I've tried a few variations of the <a href> code, in differing places, but just can't seem to get the table clickable!

Thanks in advance!

Wayne Luke
Tue 12th Sep '06, 7:16pm
Change:

<tr>
<td><img src="/images/002/header/xv3_design4_a.jpg" /></td>
<td>&nbsp;</td>
</tr>


To:

<tr>
<td><a href="index.php"><img src="/images/002/header/xv3_design4_a.jpg" /></a></td>
<td>&nbsp;</td>
</tr>

henners
Tue 12th Sep '06, 7:23pm
Cheers buddy - I actually tried that before, and it resulted in this:

http://www.vbulletin.com/forum/attachment.php?attachmentid=20465&stc=1&d=1158099748

The centered image is now a pixel/few pixels below where it used to be, probably due to the new purple border round it? How would I go about fixing it to stop this from occuring?

Wayne Luke
Tue 12th Sep '06, 7:31pm
Add border="0" to your image declaration.

henners
Tue 12th Sep '06, 7:49pm
Much appreciated :)