PDA

View Full Version : Banner not centering


Reminisce32
11-30-2007, 03:03 AM
when editing the default skin, I have made the forums fixed width and the banner the same width as the forums, but the banner aligns like one or two pixels too the left, even when set to align center. anyone know why this may be

ChU v2
11-30-2007, 04:37 AM
screenshot and header code?

Reminisce32
11-30-2007, 04:46 AM
notice how it aligns a little to the left.

http://img206.imageshack.us/img206/9029/screenshotma4.jpg

<!-- 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

ChU v2
11-30-2007, 06:57 AM
Go into Styles and Templates > Drop Down menu > Style Vars and mess with the page width etc (first option) You should make it the same width as your banner.

Reminisce32
11-30-2007, 10:52 AM
it is the exact same width, which is why im wondering why it isnt formatting correctly

Princeton
11-30-2007, 01:06 PM
play with cellpadding="0" cellspacing="0" and see what happens

Reminisce32
11-30-2007, 01:34 PM
what do you mean play with? lol

ChU v2
11-30-2007, 06:05 PM
Adjust the "0"s to a different number.

Reminisce32
11-30-2007, 09:43 PM
that only moves it vertically

ChU v2
12-01-2007, 03:40 AM
<td align="$stylevar[center]">


Change to:


<td align="center">


So your ending code would something like:


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

<!-- content table -->
$spacer_open

$_phpinclude_output


It worked on my testing skin.

Freesteyelz
12-01-2007, 07:30 AM
I suggest getting rid of the right <td> tag. It is that column of &nbsp; that's throwing the alignment off. Since you do not have anything in that cell remove it as such:


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="text-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 also added "style" to your <td> tag.

Reminisce32
12-01-2007, 11:10 AM
thanks a bunch freesteyelz

Freesteyelz
12-01-2007, 11:12 AM
Np. :)