The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Problem Centering the Menu

+2
Darren1
middo2
6 posters

Go down

Solved Problem Centering the Menu

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

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

Problem Centering the Menu Navbar10

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
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 March 24th 2010, 1:18 am

Hello,

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

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Solved Re: Problem Centering the Menu

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

I am using the "Invision" version.
middo2
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 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
ankillien
Energetic

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

Back to top Go down

Solved Re: Problem Centering the Menu

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

Could you give me the same code for PHPBB3?
avatar
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 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
kirk
Forumaster

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

Back to top Go down

Solved Re: Problem Centering the Menu

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

Yes, I did and it did not change
avatar
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 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
kirk
Forumaster

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

Back to top Go down

Solved Re: Problem Centering the Menu

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

It still does not change
avatar
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 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
kirk
Forumaster

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

Back to top Go down

Solved Re: Problem Centering the Menu

Post by jake66 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
avatar
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 March 24th 2010, 11:19 pm

Thanks for the code Ankillien, but this happened:

Problem Centering the Menu Center10

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
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 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
ankillien
Energetic

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

Back to top Go down

Solved Re: Problem Centering the Menu

Post by middo2 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
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 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
ankillien
Energetic

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

Back to top Go down

Solved Re: Problem Centering the Menu

Post by middo2 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
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 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
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 June 16th 2010, 5:43 am

Since this thread appears to be solved, I will lock this thread and mark it as solved.
Problem Centering the Menu 2j4t5a8

Sanket Smile
Sanket
Sanket
ForumGuru

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

Back to top Go down

Back to top


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