PDA

View Full Version : Banner won't center correctly


caedas
02-16-2008, 06:44 PM
I am adding a theme that a friend of mine did but am having trouble getting the banner to align. All of the code seems to be the same (I imported the style and everything) and the images are the same....

Is there any reason for it not to be centered?

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

<!-- content table -->
$spacer_open

$_phpinclude_output

Guest210212002
02-16-2008, 06:51 PM
The cell is aligned left. This code here:


<td align="$stylevar[left]">

Should be center.

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

</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Still gives me the exact same values.

Guest210212002
02-16-2008, 07:17 PM
Hm, is there a center stylevar defined? Try just this:


<td align="center">

If you've got a link I can take a peek at your code.

blind-eddie
02-16-2008, 07:33 PM
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><center><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></center></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr></table>
<!-- /logo -->

Replace with your site url, if you use a portal page.

caedas
02-16-2008, 07:37 PM
That did it, thanks!

Guest210212002
02-16-2008, 08:27 PM
Replace those <center>'s with: <div align="center"> and </div>. ;) It's just cleaner.

blind-eddie
02-16-2008, 11:44 PM
Thanks, I couldnt get it centered either, til I added the "centers" . I will give it the cleaner version....Thanks

DarwinsMessenge
01-06-2009, 05:15 AM
You rock, too, Eddie!