[jQuery] Re: superfish navbar - how do I center the whole bar?

2009-11-19 Thread xantof
Go see there : http://css-tricks.com/quick-css-trick-how-to-center-an-object-exactly-in-the-center/ On Oct 20, 4:35 am, Shawn shallway...@gmail.com wrote: I'm using anavbarwith superfish. I simply put my menu list inside a wrapper so the markup looks like this: div class=navbar-wrapper ul

[jQuery] Re: superfish navbar - how do I center the whole bar?

2009-10-20 Thread rupak mandal
Put the ul inside a div. I think it will work On Tue, Oct 20, 2009 at 9:05 AM, Shawn shallway...@gmail.com wrote: I'm using a navbar with superfish. I simply put my menu list inside a wrapper so the markup looks like this: div class=navbar-wrapper ul class=sf-menu sf-navbar div

[jQuery] Re: superfish navbar - how do I center the whole bar?

2009-10-20 Thread Florent V.
Hello, This is a CSS issue, not really related to Superfish or jQuery. The solution depends on your code, and also on the browsers you want to support (IE 6 and 7 will limit what you can do). If your UL has a fixed width, you can center it horizontally in its container using automatic margins.

[jQuery] Re: superfish navbar - how do I center the whole bar?

2009-10-20 Thread Shawn
If you have markup as indicated below, then you have invalid markup, which will cause problems. A UL element can't contain a div - it has to contain li's, which in turn can contain a div. I would expect that structure to fail. Removing the div immediately after the UL, will clean things