Log in

View Full Version : Centering a banner image in the header template?


fridaypassion
01-12-2008, 06:52 AM
Hi

I'm just implementing this mod for displaying a rotating banner ad on the forum header:

https://vborg.vbsupport.ru/showthread.php?t=106682

Once the plugin is set up the guide above tells you to insert "$banner" in the template and that is where the image appears.

This is great but how would I code "$banner" so that the image is then alligned to the centre?

this is how my header looks at the moment:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="center">


</td>

</table>

<!-- /logo -->
<td align="center">



<!-- content table -->
$spacer_open

$_phpinclude_output


Any help would be appreciated thanks!

earthtiger
01-12-2008, 09:45 AM
align="center" valign="center" $banner

Something like this will do it, I think

Cheers
Mark

fridaypassion
01-12-2008, 10:00 AM
no that hasnt worked I'm afraid

the "align="center" valign="center" text is visible on the webpage

earthtiger
01-12-2008, 12:07 PM
<td align="right" valign="center" $banner></td>

You have to close the tags - try this! works on mine.

Cheers
Mark

fridaypassion
01-12-2008, 01:42 PM
Hi Mark thanks for the reply. Where abouts in the header sis you insert the code above to get it to work?

Cheers

Jon

--------------- Added 1200154152 at 1200154152 ---------------

OK I fixed it

I fugured out you have to insert another row into the table so this works:

<tr><center>$banner</center></tr>

the "td" code inserts a column so messed up the layout

Thanks for the help anyway m8