MyBB Community Forums

Full Version: Centering a Banner
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I center the banner at the top?
Go into AdminCP --> Templates --> Modify/Delete --> Expand appropriate template --> Header -->

Look for:

<div class="logo">

and change to

<div align=center class="logo">

Save template. Of course you will have to do this for all your theme templates that you want the banner centered.
Thanks a lot!

Is there a way to center the

* Search
* Member List
* Calendar
* Help

I tried adding align="center" to the div for that, but didn't work.
judel Wrote:Go into AdminCP --> Templates --> Modify/Delete --> Expand appropriate template --> Header -->

Look for:

<div class="logo">

and change to

<div align=center class="logo">

Save template. Of course you will have to do this for all your theme templates that you want the banner centered.
While that is a solution, it's not the best. The rule of thumb is try to avoid using attributes like align/style/ect when you can use the style sheet.

The easiest thing to do is the following:
ACP -> Theme -> Modify / Delete -> *Your Theme* -> Go

Scroll all the way down and add the following code the the 'Additional CSS' box.
.logo {
text-align: center;
}
Kanuckian Wrote:Thanks a lot!

Is there a way to center the

* Search
* Member List
* Calendar
* Help

I tried adding align="center" to the div for that, but didn't work.
ACP -> Theme -> Modify / Delete -> *Your Theme* -> Go

Again, scroll all the way down and add the following code the the 'Additional CSS' box.
.menu ul {
text-align: center;
}
thanks for your help!