View Full Version : Centering logo
leylandfor
10-26-2008, 05:05 PM
Hi
As you can see on www.buckshawvillage.com the custom logo is aligned to the left, what file do i edit so that the logo will be centered?
Many thanks
snakes1100
10-26-2008, 05:14 PM
header template and comment out the right td use a <!-- --> around it.
crazyfalcon
10-26-2008, 05:14 PM
you can do this by adding a center tag
<center>
Falcon
snakes1100
10-26-2008, 05:17 PM
you can do this by adding a center tag
<center>
Falcon
You 1st need to remove one of the two td's, centering it before then, will not work.
leylandfor
10-26-2008, 05:36 PM
<!-- 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]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if>
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end
what would i edit in the header template?
Winterworks
10-26-2008, 05:40 PM
I'd just make that last little bit white (in photoshop, on that right side) then center it manually in photoshop, then reupload it.
leylandfor
10-26-2008, 05:41 PM
umm, we are changing logo soon though so would like to center it via vbulletin if possible
Winterworks
10-26-2008, 05:43 PM
But it'd look bad on both sides, with gray there. Just finish the logo, make it go all across, erase text, and redo it in center :/
snakes1100
10-26-2008, 05:43 PM
I'd just make that last little bit white (in photoshop, on that right side) then center it manually in photoshop, then reupload it.
You cant, it has two td's in the header.
@leyland
<!-- 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]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if>
</td> -->
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end
Winterworks
10-26-2008, 05:46 PM
Ohh, I get it.
crazyfalcon
10-26-2008, 06:07 PM
No Problem its gone
Lynne
10-26-2008, 06:10 PM
I would not suggest using crazyfalcon's code.The html is incorrect in that template and will give errors in an html validator (and possibly in different browsers too).
crazyfalcon
10-26-2008, 06:16 PM
Ok Lynne no Problem...Please delete it...Thanks
Lynne
10-26-2008, 06:23 PM
crazyfalcon, if you want help getting it coded correctly, just make a thread. I'm sure we could easily get that written correctly so you don't get any errors on your site.
leylandfor
10-26-2008, 08:50 PM
lynne, could you inform me on what edits i need to make to the header template so it will be center?
Lynne
10-26-2008, 08:58 PM
lynne, could you inform me on what edits i need to make to the header template so it will be center?
snakes1100 posted what needed to be done in his post above.
leylandfor
10-26-2008, 11:35 PM
You cant, it has two td's in the header.
@leyland
<!-- 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]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if>
</td> -->
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end
i deleted the current header template code and added the code above but i got a vbulletin warning saying the code had errors and said i should not proceed, any ideas? thanks for your all help so far
Lynne
10-26-2008, 11:51 PM
Replace "$stylevar[center]" with just the word "center" (I don't think there is a $stylevar[center]).
snakes1100
10-27-2008, 10:21 AM
Sorry leyland, that may not work on all versions.
Use this:
<!-- 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]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if>
</td> -->
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.