On 2/4/10 2:31 PM, Laurie Landry wrote: > For this page: > > http://laurielandry.com/homepage.html > > and using the subsequent CSS > http://laurielandry.com/assets/templates/laurielandry/css/primary_test.css > , I'm trying to figure out why the UL is shift over. > > In some browsers, the links are centered with the white box as > desired, but in Firefox 2.0 (PC) the navigation links is shifted over > in the correct positioning with the UL area. > > I want the UL (outlined in red) to be centered with the white box, not > shifted over so much. > > I'm really stumped on why this is happening, and how to correct it. >
Hmm. Yes. The UL is positioned 50% of the container width to the right in all my (Mac) browsers, just as you tell it, but FF 2 is ignoring your instruction to position the LIs 50% of the UL width to the left. In fact, it ignores the 'position: relative;' on those LIs completely. There is a solution to centering horizontal menus on listamatic[1], but it relies on using 'display: inline;' so that 'text-align: center;' works. But that does not allow you to put top and bottom borders and padding on the links. Adapting that design by putting 'display: inline-block;' on the A element solves that for most browsers. But FF 2 does not 'do' 'inline-block'... I tried using 'display: -moz-inline-box;' locally here, and that seems to work. Might be worth a try. [1] http://css.maxdesign.com.au/listamatic/horizontal27.htm BTW - the design is very fragile - even a small increase in text size creates weirdness... :( Cordially, David -- ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
