Menu position in header

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Kimberly
Posts: 11
Joined: Wed Feb 08, 2006 10:24 pm

Menu position in header

Post by Kimberly »

I want to centre the menu in the header. I thought it was controlled with the #header ul, but I have tried several things without any luck. Can someone provide me with the necessary parts of style.css that control the position of the header menu?

Thanks,
Kimberly.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just add a <div> around the <ul> in index.tpl and set the correct CSS attribute.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Kimberly
Posts: 11
Joined: Wed Feb 08, 2006 10:24 pm

I can't seem to figure this out.

Post by Kimberly »

I can't seem to figure this out at all. I put the div around the ul but there must be other settings that are overriding my div statement. If anyone wants to help out a newbie, please walk me through this. I am sure that once I conquer something this simple, I will have a better insight into customising the layout. I don't understand why I was able to twist QuickSilver Forums around and this is beating me.

Thanks in advance,
Kimberly.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Kimberly,

just send me an e-mail with your layout and I'll take a look at it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Kimberly
Posts: 11
Joined: Wed Feb 08, 2006 10:24 pm

I need to learn this stuff.

Post by Kimberly »

I need to learn this stuff. Would someone tell me why adding a margin-left: auto; margin-right: auto; to the #header ul doesn't cause the menu to be centred?

#header ul {
width: auto;
position: absolute;
bottom: 0;
right: 0;
margin-left: auto;
margin-right: auto;
padding: 0 15px 0 0;
list-style: none;
}

Thank you,
Kimberly.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

a <div> block with text-align: center around the menu list with <ul> sould center the menu.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Kimberly
Posts: 11
Joined: Wed Feb 08, 2006 10:24 pm

Thank you for your help.

Post by Kimberly »

I have been spending my time since my last post learning CSS and I have managed to change the complete layout to my needs. Thank you so much for taking the time to help me. When I get the site ready for use, I will send you the link.

Once again, Thank you,
Kimberly.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Kimberly,

that's nice to hear! :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply