View Full Version : Resolved How do I make each <li> appear on the same line?
jihanemo
11-03-2008, 11: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, 11:29 PM
li {
display:inline;
}
Snookerman
11-03-2008, 11:30 PM
Float them left using css:
li {
float:left;
}
Snookerman
11-03-2008, 11:32 PM
li {
display:inline;
}
Or use this, but then you lose the bullet points. Depends what you want.
jihanemo
11-03-2008, 11: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, 11: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, 04:19 PM
By the way, make sure you mark this thread as Resolved by editing your first post and adding the Resolved prefix.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.