MyBB Community Forums

Full Version: Center banner
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to now who can i center the logo on the center Smile please !

Quote:<a name="top" id="top"></a>
<div id="container">
<div id="header">
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" /></a></div>
<div class="menu">
<ul>



<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" /></a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" /></a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" /></a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" /></a></li>

</ul>
</div>



<span class="Ara">
<form method="post" action="search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" class="textbox" name="keywords" value="Hizli Arama" onfocus="if(this.value == 'Hizli Arama') { this.value=''; }" onblur="if(this.value=='') { this.value='Hizli Arama'; }" />
<input type="submit" class="button" value="Ara" />
</form>
</span>
Put <center> tags around the logo <div> tags.
Rather put <center> tags around <a> tags. Wink <div> has 100% of width and it is actually centred now. Wink
(2010-08-06, 02:36 PM)marines Wrote: [ -> ]Rather put <center> tags around <a> tags. Wink <div> has 100% of width and it is actually centred now. Wink

It would depend on the theme's CSS but yes your probably right, thanks for that Toungue
(2010-08-06, 02:28 PM)Polarbear541 Wrote: [ -> ]Put <center> tags around the logo <div> tags.

The <center></center> tags have been depricated long time ago and should not be used. Instead center the banner by adding this code at the css file.

.logo {
text-align: center;
}

P.s. I hope you did not mind me correcting you Smile
Meh it still works. Toungue
(2010-08-06, 03:49 PM)Polarbear541 Wrote: [ -> ]Meh it still works. Toungue

Yes, it works. But if you want your forum to use symantec modern coding then I think it will be better to avoid old fashioned depricated tags Smile