PDA

View Full Version : [solved] Header problem...



Peggy
08-14-2006, 12:35 AM
I'm having an awful time getting the header on a style to center. I've edited the code, it looks just like it does on every other style I have done with a centered header, but this one just refuses to center! GGGRRRRRRRRRRRRRRRRRRRRrrrrrrrrrrrrrrrrrrrr

Here's the code from the header template... anyone see a reason the header won't center?


<!-- 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>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output

Noppid
08-14-2006, 07:11 AM
Get rid of the empty TD and tell us what happens.

Peggy
08-14-2006, 09:53 AM
hmmmmm ok....

Darwa
08-15-2006, 12:53 AM
Got it fixed yet Peggy?

I'm having the same trouble.

Peggy
08-15-2006, 06:56 AM
I sure did. There are two solutions to this.

#1- Original Header code

<!-- 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" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output

Make the changes that are in red above, so that the code now looks like this:

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


The other solution is to change the the original code (in red) to look like this:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
[B]<td align="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

I hope that was clear? I'm not real good at explaining lol

Darwa
08-15-2006, 07:25 AM
That sorted it. Thanks Peggy :)

Peggy
08-15-2006, 08:58 AM
You're very welcome :D