Hi, I want to render this list in a single line.
- List item1
- List item2
Should be shown as
*List item2 *List item2
What CSS style to use?
Hi, I want to render this list in a single line.
Should be shown as
*List item2 *List item2
What CSS style to use?
ul li{
display: inline;
}
For more see the basic list options and a basic horizontal list at listamatic. (thanks to Daniel Straight below for the links).
Also, as pointed out in the comments, you probably want styling on the ul and whatever elements go inside the li's and the li's themselves to get things to look nice.
Lots of options at Listamatic.
Here's a very basic horizontal list.
html code[
]
css code[ ul.list li{ width: auto; float: left; } ]