View Full Version : List Question


SamanthaSkye
03-15-2007, 09:07 AM
http://rachels-closet.com/menu.html

^That's what I'm working with at the moment. I'm trying to get it so that there is only one link per line. I can't figure out why some are right next to each other instead of above/below it. It's probably obvious but it's rather late and my brain isn't functioning at 100%, lol.

Arwen
03-15-2007, 11:47 AM
display: block; will fix it.

J to the izzosh
03-15-2007, 01:56 PM
List item elements (<li> tags) display as block by default, so you don't actually need to specify it. You will, however, need to remove float:left from the CSS rule for your list items; it's causing them to be removed from the normal flow and float next to each other instead of breaking to new lines like they normally would.

#links li{
float: left; /* This right here is the trouble maker. */
}