MyBB Community Forums

Full Version: Align logo image center?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi guys

how do i align my board logo to center? at present its on the left

Thanks
Got a link to your forum?

How big is your logo?
add below code in your global.css file AND hard refresh your forum page (use CTRL + F5 , may be 3 - 5 times)
#logo {text-align: center;}
(2011-09-06, 04:08 PM)ranjani Wrote: [ -> ]add below code in your global.css file AND hard refresh your forum page (use CTRL + F5 , may be 3 - 5 times)
#logo {text-align: center;}

If I am correct I believe the default logo is in a class so he will need:
.logo {text-align: center;}
^ yes, please have a look here ..
oki heres my current code in global.css for logo:

#logo {
	background: #385947 url(images/calm/header.png) top left repeat-x;
	border-bottom: 1px solid #263c30;

i added:
.logo {text-align: center;}

but my whole template went pear shaped! Sad ?

heres my board url http://www.carpinmad.co.uk
Find this:

#logo {
	background: #385947 url(images/calm/header.png)top left repeat-x;
        border-bottom: 1px solid #263c30;
}

Replace with:

#logo {
	background: #385947 url(images/calm/header.png)top left repeat-x;
        border-bottom: 1px solid #263c30;
        text-align: center;
}
Delete that .logo {text-align: center;} and repleace your

Quote:#logo {
background: #385947 url(../../../images/calm/header.png);
border-bottom: 1px solid #263c30;
}
with

Quote:#logo {
background: #385947 url(../../../images/calm/header.png);
border-bottom: 1px solid #263c30;
text-align:center;
}

edit :faviouz replayed first.
will give it ago ta Smile
excellent, thanks guys Smile
oops problem, its aligned all my forum to center

posts / topics etc Sad ?
ah its ok i fixed it, was the wrapper in templates was missing Smile