View Full Version : How to center a banner
katie hunter
06-22-2007, 12:44 PM
If i have a banner and I want to put it in the center of the header/forum not at the far left side, what should i edite inside the forum style ?
http://forum.nihonomaru.com/?styleid=4
I want to move that banner to be in the center of the forum. x3
Thanks (:
notrious
06-22-2007, 12:48 PM
<TABLE WIDTH="213" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="center"> PLACE YOUR CODE HERE</table>
you can aslo use this place this <center>YOUR HEADER CODE </center>
katie hunter
06-22-2007, 01:01 PM
Hmm ;/ this is my header, i can't find it in there.
<!-- logo -->
<a name="top"></a>
<div class="side_borders">
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="tborder">
<tr>
<td align="center" valign="top">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr class="header_bg">
<td align="$stylevar[left]" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
$header_advertisement
<!-- banners --></td>
</tr>
<tr>
<td height="34" colspan="2" class="vb_navigation">
<!-- nav buttons bar -->
<div align="center">
<table cellpadding="0" cellspacing="0" border="0" align="left" class="vb_navigation">
<tr align="center">
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/memberlist.php$session[sessionurl_q]">Memberlist</td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]">Arcade</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/awards.php$session[sessionurl_q]">$vbphrase[award]</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/inferno.php?">RPG</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/chat.php?$session[sessionurl]" trager="_blank">Chat</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/billspaypal.php?">$vbphrase[billspp_donate]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<td id="navbar_search" width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></if></td>
</if>
<if condition="$show['member']">
<td id="usercptools" width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/$show[nojs_link]#usercptools">Quick links</a> <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
</if>
<if condition="$show['member']"> </if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onClick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>
<td width="8" height="34" align="left"><img src="$stylevar[imgdir_misc]/nav_final.gif" width="8" height="34" alt="" border="0" /></td>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$leftcolumn_advertisement
$_phpinclude_output
notrious
06-22-2007, 01:29 PM
not whole header code just your logo code put between these codes
katie hunter
06-22-2007, 01:49 PM
Whare can I find the logo code =/ ?
dyna88
06-22-2007, 01:51 PM
Removed unnecessary code
katie hunter
06-22-2007, 01:53 PM
what should i do with this chunk of codes ?
dyna88
06-22-2007, 01:55 PM
what should i do with this chunk of codes ?
That is your header template you posted with one small edit....just replace your current header template with this one....
katie hunter
06-22-2007, 02:03 PM
I pasted it and it didn't work =/
dyna88
06-22-2007, 02:09 PM
How about this.....
<!-- logo -->
<a name="top"></a>
<div class="side_borders">
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="tborder">
<tr>
<td align="center" valign="top">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr class="header_bg">
<td align="center" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
$header_advertisement
<!-- banners --></td>
</tr>
<tr>
<td height="34" colspan="2" class="vb_navigation">
<!-- nav buttons bar -->
<div align="center">
<table cellpadding="0" cellspacing="0" border="0" align="left" class="vb_navigation">
<tr align="center">
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/memberlist.php$session[sessionurl_q]">Memberlist</td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]">Arcade</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/awards.php$session[sessionurl_q]">$vbphrase[award]</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/inferno.php?">RPG</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/chat.php?$session[sessionurl]" trager="_blank">Chat</a></td>
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/billspaypal.php?">$vbphrase[billspp_donate]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<td id="navbar_search" width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></if></td>
</if>
<if condition="$show['member']">
<td id="usercptools" width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/$show[nojs_link]#usercptools">Quick links</a> <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
</if>
<if condition="$show['member']"> </if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onClick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>
<td width="8" height="34" align="left"><img src="$stylevar[imgdir_misc]/nav_final.gif" width="8" height="34" alt="" border="0" /></td>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$leftcolumn_advertisement
$_phpinclude_output
Reply With Quote
katie hunter
06-22-2007, 02:13 PM
Yayyyy !! Working <33
Thanks
Can you tell me which part u edited so i can do it with the others skins if i need to (: ?
Thanks
dyna88
06-22-2007, 02:18 PM
I replaced
<td align="$stylevar[left]" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0"
with
<td align="center" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0"
katie hunter
06-22-2007, 02:23 PM
Thanks <33
dyna88
06-22-2007, 02:40 PM
You're welcome......
eobie
06-22-2007, 04:44 PM
i just used
<center> MY CODE</center>
Worked for me.
Dismounted
06-23-2007, 03:07 AM
<center> tags are now deprecated under XHTML and should not be used.
Dave Hawley
06-23-2007, 07:04 AM
How about a Div?
Dismounted
06-23-2007, 10:06 AM
In place of <center>, you should use either:
<div style="text-align: center;">
Or
<span style="text-align: center;">
jsurfs
06-23-2007, 04:53 PM
i would like to add my banner/logo and don't know what template/page to edit..any help?
Dave Hawley
06-24-2007, 03:53 AM
Add it where?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.