MyBB Community Forums

Full Version: How to center banner?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Ok i searched i could not find it how do you center the banner on your forum?
In the header template...

<div align="center">Code for logo</div>
Header template where dat?
ACP -> Templates and Style -> Templates -> Your theme -> Header Templates. Select header and add that code around the logo code already in the the template.
<div id="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
<div id="submenu"><div id="submenu_left"><strong><a href="{$mybb->settings['bburl']}/portal.php">Portal</a><a href="{$mybb->settings['bburl']}/index.php">Foro</a></strong></div><div id="submenu_right"><strong><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></strong><br /></div></div>
{$disablercg}<div id="container">
<a name="top" id="top"></a>
<div id="header">
<hr class="hidden" />

</div>
<hr class="hidden" />
<br class="clear" />
<div id="content">
{$welcomeblock}

{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
<br class="clear" />


Where do i put it to much i am confused...
<div id="logo"><a href="{$mybb->settings['bburl']}/index.php"><div align="center"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div></div>
<div id="submenu"><div id="submenu_left"><strong><a href="{$mybb->settings['bburl']}/portal.php">Portal</a><a href="{$mybb->settings['bburl']}/index.php">Foro</a></strong></div><div id="submenu_right"><strong><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></strong><br /></div></div>
{$disablercg}<div id="container">
<a name="top" id="top"></a>
<div id="header">
<hr class="hidden" />

</div>
<hr class="hidden" />
<br class="clear" />
<div id="content">
{$welcomeblock}

{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
<br class="clear" />

Try that.
Why put a new div in instead of centering the id=logo div, Josh?
thanks a billion your to smart lol
I love html and thats it
http://windowsmediaman.123bemyhost.com/Forum/index.php
it worked
know how to get rid of the green line at the top where it says stuff right bellow the banner came with theme?
(2009-07-09, 03:58 AM)Bey Brad Wrote: [ -> ]Why put a new div in instead of centering the id=logo div, Josh?

That's just that way I do it, but you can do it that way.
You know on my site, link: www.consoleinfo.tk
How can i get rid of the green line at the top or just edit it either one works?
Pages: 1 2 3