Forum Moderators: not2easy

Message Too Old, No Replies

Floated lists and widths

         

RammsteinNicCage

6:00 pm on Aug 12, 2004 (gmt 0)

10+ Year Member



I have a list that has each item floated to the left to create a horizontal menu. Since widths have to be declared on the <li>s for some browsers (my problem is IE on Mac OS X), is it possible to just put width:auto; on them or do I have to give them an explicit width?

Jennifer

Span

12:48 pm on Aug 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What if you don't float the list-items but give them a display:inline; instead?

li {
display:inline;
}

RammsteinNicCage

1:23 pm on Aug 13, 2004 (gmt 0)

10+ Year Member



I don't think I can because I also have #forumMenu li a {display:block;} so that I can have the entire background change on a hover.

Jennifer

4css

3:24 pm on Aug 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



List apart has some really great list that you can work from, and Here are [moronicbajebus.com] Some other list ideas that you can follow along on.

hope this helps you out a bit!