Log in

View Full Version : How to center logo?


Devanand
06-08-2009, 02:26 PM
How can I center logo?
I was trying but never got in the middle.

Bacteria1
06-08-2009, 03:29 PM
<div align="center">IMG & OTHER CODE HERE </div>

EagleNick
06-08-2009, 03:34 PM
In your header template, find the following:

<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions" /></a></td>

Change the [B]blue text to center.

Devanand
06-08-2009, 03:36 PM
In your header template, find the following:

<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions" /></a></td>

Change the [B]blue text to center.

I did this before but its not working.

EagleNick
06-08-2009, 03:37 PM
I did this before but its not working.
Could you paste the entire contents of your header template here?

Devanand
06-08-2009, 03:50 PM
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><div id="header"><h1><a href="$vboptions[forumhome].php$session[sessionurl_q]">$vboptions[bbtitle]</a></h1></div> </td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open


$_phpinclude_output

$ad_location[ad_header_end]

EagleNick
06-08-2009, 04:22 PM
Are you sure you tried the change I posted above? I don't see it in the code you pasted.

Devanand
06-08-2009, 04:52 PM
Yes, I put it back when it didn't work.

Seven Skins
06-08-2009, 05:13 PM
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center"><div id="header"><h1><a href="$vboptions[forumhome].php$session[sessionurl_q]">$vboptions[bbtitle]</a></h1></div> </td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]


This should work.

Devanand
06-08-2009, 07:08 PM
I just told that it doesn't work

Edit:

I found it. I forgot that I have some extra CSS in Additional CSS Definitions.

Thank for help anyway :)