This is a discussion on "[SOLVED] Centering a horizontal list in Firefox" within the Web Page Design section. This forum, and the thread "[SOLVED] Centering a horizontal list in Firefox are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Centering a horizontal list in Firefox
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
[SOLVED] Centering a horizontal list in Firefox
This is embarrassing
I can't get my simple ul navigation centered. http://www.collierhills.net/index.php
|
|
|
|
|||
|
Re: Centering a horizontal list in Firefox
Have you tried using "margin: 0 auto" instead of "text-align: center"?
Text-align will centre the inline children of a block-level element; margins will centre blocks themselves (provided you set a width). |
|
|||
|
Re: Centering a horizontal list in Firefox
If what Mike said is not working you could revert to manually centering the div.
Example:
Hope this helps!
Last Blog Entry: First Post! (Apr 18th, 2008)
|
|
|||
|
Re: Centering a horizontal list in Firefox
Quote:
It might take longer to get the modern method working, but that's because you're learning how to do it the right way. |
|
|||
|
Re: Centering a horizontal list in Firefox
Hey Mason, I just did a really simple horizontal list that is centered. Here's the code. I think by looking at this you'll be able to see what you have missing.
|
|
||||
|
Re: Centering a horizontal list in Firefox
Thanks for the help. It was some weird bug that I still don't understand -- I've done dozens of these w/o any problem. I finally just tore it up and redid it, and it was fine.
I was getting all kinds of nutty stuff: wrong rollover effects, strange gaps and margins. (I still don't get the inheritance rules for pseudo-class effects, but I just play around until they work.) |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| horizontal list navigation breaks when load times are slow | sch3dana | Web Page Design | 14 | Mar 19th, 2008 12:56 |
| centering content div in firefox | Roland | Web Page Design | 7 | Jun 28th, 2007 20:48 |
| Horizontal list | Krakatoa | Web Page Design | 4 | May 16th, 2006 13:16 |
| Horizontal drop down list | Ranko | Web Page Design | 8 | Oct 23rd, 2004 10:25 |
| Tip : Vertical and Horizontal Centering - Solved! | gwx03 | Web Page Design | 0 | Dec 15th, 2003 06:11 |