MyBB Community Forums

Full Version: stand logo in center
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

how to stand logo in center.

any plugin or code modification to do this???




thanks
ACP -> Templates & styles -> templates -> Your theme -> header templates -> header

Find:
Quote:<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

Replace with:
Quote:<div class="logo"><center><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></center></div>
OR add below code in your global.css (at bottom)
.logo {text-align:center;}
not working, \

m usind defult theme
Both the solutions above should work, although the second is the better option as the <center> tag is deprecated.

What's your URL?
It seems to be http://www.nepalgsm.com/ngf/

You haven't done either of the things suggested unless you reverted them.
it works, thanks a lot.

there was problam in my editing.

thanks
ranjani, would you please clarify what you mean by
Quote:at the bottom
Do you mean at the bottom of the "Selector" list, or the bottom of the #bgimg options, or ???

Thanks in advance. Big Grin
^ admin panel --> themes --> your current theme --> global.css -->
click on Edit Stylesheet: Advanced Mode tab
scroll to the bottom of the code AND put your new code there starting a new line
thanks for this you help me to my problem too cheers