On 2/13/06, David Faulhaber <[EMAIL PROTECTED]> wrote:
> I followed the "Scalable Navigation"
> example in chapter two of Dan Cederholm's and everything looked great in
> Safari... until I checked the site in Explore, Firefox, and Opera, all of
> which screwed up the nav tabs. Opera displays only two of the tabs (inline),
> while Explorer and Firefox stack all the tabs one on top of the other
> against the left side. I've been trying to troubleshoot this all day but my
> brain is shot and I just can't "see" what the problem might be.
Well, I didn't have much time to play with it but I did the following:
#nav {
float: left; /* formerly right */
width: 100%;
margin: 0;
padding: 10px 0 0 0;
list-style: none;
background: url(images/nav_bg.jpg) repeat-x bottom left;
}
#nav li { /* float removed */
margin: 0;
padding: 0;
display:inline;
font-family:Arial, Helvetica, sans-serif;
font-size: 90%;
}
And it looked perfect in Firefox. I think the problem you had was that
the list items are floated right, but when you do that, whatever comes
lower in the source drops below what is before it... or something.
Actually I don't know if I have an explanation but basically just
using
display:inline;
on the list items is enough that you don't need to float them.
--
--
Christian Montoya
christianmontoya.com ... rdpdesign.com ... cssliquid.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/