MyBB Community Forums

Full Version: How to align logo to the right?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi could you tell me please how to realign my logo which is now on the left to the right.
Thanks
Go to your Themes and templates>>Your theme and then to your header template: Find

<div class="logo">

and replace it with:

<div class="logo" style="margin:0 auto;text-align:right">
There are many ways to align the logo. Here are 2 ways I'm aware of to align your logo to the right:

1. Add

.logo {
text-align: right;
}

In your themes global.css stylesheet.

2. Replace

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

To


<div class="logo" style="margin:0 auto;text-align:right"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

In your themes header template.
(2013-07-10, 06:49 PM)marcus123 Wrote: [ -> ]Hi could you tell me please how to realign my logo which is now on the left to the right.
Thanks

Add style:
float: right;

and use
margin-right: 0px;
margin-top: 0px;

to move it into positon. Replace the "0" in the code to your own number and the number can be negative if needed.
Thank you all guys for your help