View Full Version : Getting the header image " Centerd "
e-power
10-25-2008, 08:02 AM
As title how do i go about getting the header image in center of page.
Thanks
misuzuu
10-25-2008, 10:56 AM
So you want your banner to be centered?
e-power
10-25-2008, 11:03 AM
yes .. im running non standard theme where the header txt is already altered i tryed using the tut found on here but just messes the header more
misuzuu
10-25-2008, 01:43 PM
could you give us the code and a screen shot or something ?
it can help maybe if you just add <center> on the code where the img is located, but would be the simplest way
e-power
10-25-2008, 04:32 PM
<!-- logo -->
<a name="top"></a>
<table width="$stylevar[outertablewidth]" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="24" colspan="2" class="header_top"></td>
</tr>
</table>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]" class="logo_bg"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td width="100%" align="$stylevar[left]" valign="bottom" class="logo_bg" id="header_right_cell"><if condition="THIS_SCRIPT == 'adv_index'"><div id="menu_forums"><a href="$vboptions[bburl]/"></a></div><else /><div id="menu_home"><a href="$vboptions[homeurl]/"></a></div></if><if condition="$vbulletin->products['vbprojecttools']"><div id="menu_projects"><a href="$vboptions[bburl]/project.php"></a></div></if><if condition="$vbulletin->products['vbblog']"><div id="menu_blog"><a id="vbbloglinks" href="$show[nojs_link]#blogs" accesskey="3"></a> <script type="text/javascript"> vbmenu_register("vbbloglinks",1); </script></div></if><if condition="$show['registerbutton']"> <div id="menu_register"><a href="$vboptions[bburl]/register.php"></a></div></if><if condition="$show['member']"><div id="menu_login"><a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"></a></div></if></td>
</tr>
<tr>
<td height="15" colspan="2" class="header_sub"></td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]
misuzuu
10-26-2008, 10:54 AM
<!-- logo -->
<a name="top"></a>
<table width="$stylevar[outertablewidth]" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="24" colspan="2" class="header_top"></td>
</tr>
</table>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center" class="logo_bg"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td width="100%" align="$stylevar[left]" valign="bottom" class="logo_bg" id="header_right_cell"><if condition="THIS_SCRIPT == 'adv_index'"><div id="menu_forums"><a href="$vboptions[bburl]/"></a></div><else /><div id="menu_home"><a href="$vboptions[homeurl]/"></a></div></if><if condition="$vbulletin->products['vbprojecttools']"><div id="menu_projects"><a href="$vboptions[bburl]/project.php"></a></div></if><if condition="$vbulletin->products['vbblog']"><div id="menu_blog"><a id="vbbloglinks" href="$show[nojs_link]#blogs" accesskey="3"></a> <script type="text/javascript"> vbmenu_register("vbbloglinks",1); </script></div></if><if condition="$show['registerbutton']"> <div id="menu_register"><a href="$vboptions[bburl]/register.php"></a></div></if><if condition="$show['member']"><div id="menu_login"><a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"></a></div></if></td>
</tr>
<tr>
<td height="15" colspan="2" class="header_sub"></td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]
see if that works for you
e-power
10-27-2008, 06:38 PM
Alright bud just got round to trying it didnt work :(
Lynne
10-27-2008, 06:59 PM
A link to your site where it isn't working may help. (If it's the site in your profile, then it looks centered to me.)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.