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?
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?
Last edited by Snookerman; 04-22-2009 at 08:57 AM. Reason: added “Resolved” prefix
li {
display:inline;
}
Float them left using css:
Code:li {float:left;}
Thanks guys. I tried both ways but it's still not working. Can you correct my code? (http://americanchic.net/testpage)
You need to float the images as well:
Code:#myul li{margin:0px;float:left;} #myul img{float:left;border:1px solid #222; width:80px; height:67px; cursor:pointer; }
jihanemo (11-03-2008)
By the way, make sure you mark this thread as Resolved by editing your first post and adding the Resolved prefix.
Bookmarks