Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-16-2012, 07:05 PM   PM User | #1
ptmuldoon
Regular Coder

 
Join Date: Feb 2005
Posts: 659
Thanks: 5
Thanked 14 Times in 14 Posts
ptmuldoon is on a distinguished road
Centering Menu

I working to build a new menu for my fantasy football site, and can not seem to get the menu to center using a 100% width for the menu. I can get it to center with a fixed width, but then I need to adjust the px size to make it look correct.

I believe I need to add margin-left: auto and margin-right:auto, but that seems to only work with a fixed width.

So how can I center the menu?

EDIT...... Nevermind...... I placed the menu in a table, and centered the table. May not be the best way, but it works!

Last edited by ptmuldoon; 08-16-2012 at 09:31 PM..
ptmuldoon is offline   Reply With Quote
Old 08-16-2012, 10:10 PM   PM User | #2
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
Please change the thread title to "Solved".

Thank you.
tempz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:42 AM.


Advertisement
Log in to turn off these ads.