MyBB Community Forums

Full Version: CSS Image Centering
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
They're not both centered. The menu is centered and the logo is left aligned.

If you want the logo centered add this to global.css:
.logo {
	text-align: center;
}

If you want the menu left aligned, remove this from the .menu ul class:
	text-align: center;
In where?
tried in style sheet and not working with logo code.
In global.css, just add it at the very bottom in advanced mode.
I am not an advanced coder, where do i access the file, what do I need to do to go into advanced mode?
ACP >> Templates & Style >> Themes >> yourtheme >> global.css >> Edit Stylesheet: Advanced Mode

Then just copy and paste the .logo code I posted before at the bottom of the stylesheet.

For the menu bit you'll need to find .menu ul and delete the text-align: center; part. Smile
Thanks got it, worked, but I sure wish they had a control panel option to handle this, amongst other theme changes, would have been easier for average users that way rather then taking valuable time from here Wink Anyhow it worked. I'll have to do this I guess for each theme as I have several per forum and several forums. Too bad that the centered logo didn't carry over during the upgrade process.
Pages: 1 2