Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying list horizontally

Status
Not open for further replies.

ecobb

Programmer
Dec 5, 2002
2,190
US
How would I get an unordered list to display in a horizontal line instead of a verticle one?

For example, I would like to have this:

Item1 Item2 Item3

Instead of this:

Item1
Item2
Item3

Thanks!



Hope This Helps!

Ecobb

"My work is a game, a very serious game." - M.C. Escher
 
Try adding this to your head section:

Code:
<style type="text/css">
li {
   display: inline;
}
</style>

Hope this helps,
Dan
 
Hey, thanks! That seemed to get it. I like how whenever I have a problem with css, it always seems to be some little setting that I didn't know about! ;-)



Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top