Log in

View Full Version : Need help with a table


vBulletin THEN DAYLIGHT
06-01-2006, 09:09 PM
Look at the attachment and you will see what I am trying to achieve....

How can I squash the banner I have in the table right up into the corners so there are not the gaps around the edge. I already have cellpadding and cellspacing all set to 0.

This is the code for the table so far:


<table class="thead" border="0" width="100%" align="center">
<tr>
<td valign="top" class="thead" width="709"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td class="thead"><table align="right" border=0"><tr><td valign="middle">
<p>-- <a href="/" title="Home">Home</a><br />-- <a href="/forum" title="Forum">Forum</a><br />-- <a href="/photos" title="Gallery">Gallery</a><br />-- <a href="/articles" title="Articles">Articles</a><br />-- <a href="/forum/sendmessage.php" title="Contact Us">Contact Us</a></p></td></tr></table></td>
</tr>
</table>

ericgtr
06-01-2006, 09:56 PM
It looks like you only have the border set to 0, not the cellspacing and cellpadding . Try this..


<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="thead">
<tr>
<td valign="top" class="thead" width="709"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td class="thead"><table align="right" border=0"><tr><td valign="middle">
<p>-- <a href="/" title="Home">Home</a><br />-- <a href="/forum" title="Forum">Forum</a><br />-- <a href="/photos" title="Gallery">Gallery</a><br />-- <a href="/articles" title="Articles">Articles</a><br />-- <a href="/forum/sendmessage.php" title="Contact Us">Contact Us</a></p></td></tr></table></td>
</tr>
</table>