MyBB Community Forums
Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Support (https://community.mybb.com/forum-10.html)
+---- Thread: Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) (/thread-42813.html)



Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) - faviouz - 2008-12-31

As the title says, I can't center a logo without having the welcomeblock wrong positioned. I've set the theme as default so you can see it, have a look: http://planeta-playstation.com/forum/

Help please. Smile


RE: Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) - Giangy94 - 2009-01-01

There is only white page:d


RE: Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) - faviouz - 2009-01-01

White page?


RE: Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) - Giangy94 - 2009-01-01

Yes, When I go in your site I see a white page!


RE: Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) - faviouz - 2009-01-01

Weird.. but, I can see it. Confused


RE: Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) - Tomm M - 2009-01-01

To center a logo, you can alter the DIV tag. The default code is below. In Header Templates => header, change:

			<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" align="left"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

Technically that should work... if not, you can try style="text-align:left;" and throwing another div container around the logo.


RE: Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) - faviouz - 2009-01-01

Yeah, but now the logo isn't centered. Confused


RE: Welcomeblock doesn't stays on the left, when centering a logo. (with afresh themes) - dennisl - 2009-01-20

Hi,

Just change align="left"> to align="center">

Cheers