View Full Version : Resolved How do I make each <li> appear on the same line?
jihanemo
11-03-2008, 10:08 PM
How do I create an unordered list in which each <li> appears on the same line instead of separate lines? Is there CSS code I can use? Attribute?
bluewalrus
11-03-2008, 10:29 PM
li {
display:inline;
}
Snookerman
11-03-2008, 10:30 PM
Float them left using css:
li {
float:left;
}
Snookerman
11-03-2008, 10:32 PM
li {
display:inline;
}
Or use this, but then you lose the bullet points. Depends what you want.
jihanemo
11-03-2008, 10:41 PM
Thanks guys. I tried both ways but it's still not working. Can you correct my code? (http://americanchic.net/testpage)
Snookerman
11-03-2008, 10:48 PM
You need to float the images as well:
#myul li{margin:0px;float:left;}
#myul img{
float:left;
border:1px solid #222;
width:80px;
height:67px;
cursor:pointer;
}
Snookerman
11-04-2008, 03:19 PM
By the way, make sure you mark this thread as Resolved by editing your first post and adding the Resolved prefix.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.