The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Problem Centering the Menu

View previous topic View next topic Go down

Solved Problem Centering the Menu

Post by middo2 on March 24th 2010, 12:51 am

I was trying to center my navbar but I can't:



It is currently set in "Center". But later I tried putting it to the right (or even left) and it is still in the same position.

What is wrong?

middo2
Forumember

Posts : 503
Reputation : 5
Language : English

http://newhorizons.englishboard.net

Back to top Go down

Solved Re: Problem Centering the Menu

Post by Darren1 on March 24th 2010, 1:18 am

Hello,

What forum version are you using, we will need to edit it via the CSS.

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Solved Re: Problem Centering the Menu

Post by middo2 on March 24th 2010, 3:21 am

I am using the "Invision" version.

middo2
Forumember

Posts : 503
Reputation : 5
Language : English

http://newhorizons.englishboard.net

Back to top Go down

Solved Re: Problem Centering the Menu

Post by ankillien on March 24th 2010, 4:54 pm

Hello,

Please navigate to Admin CP > Display > Colors > CSS
Add this code there and submit...

Code:
#submenu ul {
text-align: center !important;
}

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Problem Centering the Menu

Post by jake66 on March 24th 2010, 6:28 pm

Could you give me the same code for PHPBB3?

jake66
Forumember

Male Posts : 178
Reputation : 0
Language : English
Location : UK

http://www.computer-wizzy.com

Back to top Go down

Solved Re: Problem Centering the Menu

Post by kirk on March 24th 2010, 6:31 pm

@jake66 wrote:Could you give me the same code for PHPBB3?

try that code in phpbb3 it should work the same. then if not annie will have to give you a different code for that.

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Problem Centering the Menu

Post by jake66 on March 24th 2010, 6:32 pm

Yes, I did and it did not change

jake66
Forumember

Male Posts : 178
Reputation : 0
Language : English
Location : UK

http://www.computer-wizzy.com

Back to top Go down

Solved Re: Problem Centering the Menu

Post by kirk on March 24th 2010, 6:36 pm

@jake66 wrote:Yes, I did and it did not change

did you try setting the page headers? you mat not even need a css code.

admin panel>display>headers and navigation.

right at the top you will see page headers.
just set menu position to center and hit save.

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Problem Centering the Menu

Post by jake66 on March 24th 2010, 6:46 pm

It still does not change

jake66
Forumember

Male Posts : 178
Reputation : 0
Language : English
Location : UK

http://www.computer-wizzy.com

Back to top Go down

Solved Re: Problem Centering the Menu

Post by kirk on March 24th 2010, 6:54 pm

@jake66 wrote:It still does not change

dude actually your whole forum is off to the left?
i have to look at few things first.. actually you might be better starting a new topic for this problem.

just start one with a title like.
forum is off to the left or something like that.

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Problem Centering the Menu

Post by jake66 on March 24th 2010, 7:09 pm

No sorry, it is not that forum. It is (address hidden)

I don't mine computer wizzy being like that cuz the nav bar is centered

jake66
Forumember

Male Posts : 178
Reputation : 0
Language : English
Location : UK

http://www.computer-wizzy.com

Back to top Go down

Solved Re: Problem Centering the Menu

Post by middo2 on March 24th 2010, 11:19 pm

Thanks for the code Ankillien, but this happened:



It did go to the left a bit but the log out button went down there??

Also I put it to the "right" via headers and navigation in the admin panel, but it didn't move...

middo2
Forumember

Posts : 503
Reputation : 5
Language : English

http://newhorizons.englishboard.net

Back to top Go down

Solved Re: Problem Centering the Menu

Post by ankillien on March 25th 2010, 3:00 am

@middo,

It is because your nab bar is too wide. Try aligning it to left or reduce the nav bar buttons width or increase overall forums width Very Happy

@jake66,
Code for phpBB3 version...

Code:
.navbar ul{
text-align: center !important;
}

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Problem Centering the Menu

Post by middo2 on March 25th 2010, 4:28 am

@ankillien: Yeah, tried aligning it to the right but it didn't move >.<

Is there a reason for this? If it is in the center or left it makes no difference.

middo2
Forumember

Posts : 503
Reputation : 5
Language : English

http://newhorizons.englishboard.net

Back to top Go down

Solved Re: Problem Centering the Menu

Post by ankillien on March 25th 2010, 7:24 am

Actually, it works.
The width of your nav bar is larger that your forum's overall width so it can't move to left or center.

You should try increasing the total width of your forum and give space for nav bar to move to left/center.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Problem Centering the Menu

Post by middo2 on June 15th 2010, 11:40 pm

Just wanted to say that no matter how much I increased the forum width the log out button on the bottom never moved :/

middo2
Forumember

Posts : 503
Reputation : 5
Language : English

http://newhorizons.englishboard.net

Back to top Go down

Solved Re: Problem Centering the Menu

Post by middo2 on June 16th 2010, 12:06 am

I don't mean to double post, but a mod could lock this because I have fixed the problem. Wink

middo2
Forumember

Posts : 503
Reputation : 5
Language : English

http://newhorizons.englishboard.net

Back to top Go down

Solved Re: Problem Centering the Menu

Post by Sanket on June 16th 2010, 5:43 am

Since this thread appears to be solved, I will lock this thread and mark it as solved.


Sanket Smile

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum