[Tutorial] Centering the logo. - Printable Version +- MyBB Codes (http://www.mybbcodes.com) +-- Forum: Babjusi's Previous Forum General Stuff (/forumdisplay.php?fid=42) +--- Forum: General Support (/forumdisplay.php?fid=46) +---- Forum: Tutorials (/forumdisplay.php?fid=50) +---- Thread: [Tutorial] Centering the logo. (/showthread.php?tid=1103) |
[Tutorial] Centering the logo. - babjusi - 11-29-2009 05:45 PM I have come across many posts here where users have asked how to center the logo. I have answered some of them and thought it would be best to make a sort of tutorial about it so it can save a lot of time in the future to those that want to accomplish such a thing. Anyway, here we go: To center the default logo, find at the Header templates-header the following code: Code:[Highlight] <div class="logo" ><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div> and replace it with: Code:[Highlight] <div class="logo" style="margin:0 auto;text-align:center"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div> |