News:

Wondering if this will always be free?  See why free is better.

Main Menu

Default Template - Center the Whole Menu

Started by Burke ♞ Knight, October 30, 2008, 07:02:18 PM

Previous topic - Next topic

Burke ♞ Knight

SMF 2.0 Beta 4.
Default Template.

Would like to know how to center the whole menu.
Having it at the left is not my style...LOL

In 1.1.5, I had been able to do this, yet have not figured out how in 2.0...

AlenNS

Open index.template.php pf yout Theme and find:

<div id="main_menu">

Replace with:

<div id="main_menu" align="center">

Burke ♞ Knight

Tried that, then cleared my cache, and still not centering. :(

AlenNS

Then try this.

Open Themes\default\css\index.css and find this:

/* The main menu. */
#main_menu
{
padding-left: 1em;


Replace with:


/* The main menu. */
#main_menu
{
padding-left: 33%;

Burke ♞ Knight

Nope.
That moved it at least...LOL

Just too much for members, and not enough for guests.

AlenNS

Hit CTRL + F5

Here's on my test forum. It did the job like it should.


Burke ♞ Knight

It moved it, but too much for members, yet not enough for guests. The menu is rather long for members, and a little shorter for guests. That may be the reason.

It is at default menu alignment now, if you want to see what I mean. The site has been very much modified, and is not made for people to register, and I did go and have some fun making this site...lol

http://www.burkeknight.com

Rumbaar

#7
Try
/* The main menu. */
#main_menu
{
   padding-left: 1em;
   text-align: center;
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Burke ♞ Knight

Nope, but it's ok now.
So much on the menu, I think its about to center itself if I add anything else...LOL

Advertisement: