[css-d] Centering an inline list?

2006-08-03 Thread Denise
I am using ul and li to create a horizontal navigation menu in the header area and would like the links to appear in the center of the enclosing div. Currently they align to the left. Relevant markup is as follows: #mdmenu { width:800px; height:30px; margin:5px auto 20px

Re: [css-d] Centering an inline list?

2006-08-03 Thread cj
the reason it's not centering with the (correct for what you're trying to do) margins you have is because the ul is 100% width. if firefox actually had inline-block, you could set the display to that and be done, but alas... :'( to be cross-browser, try something like #mdmenu ul

Re: [css-d] Centering an inline list?

2006-08-03 Thread Denise
Excellent! That did the trick. Thank you. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of cj Sent: Thursday, August 03, 2006 1:13 PM To: Denise Cc: css-d Subject: Re: [css-d] Centering an inline list? the reason it's not centering with the (correct