Align list item to left in unordered list
I have the following html and css:
HTML:
<div id="wrapper"> <ul> <li>li1</li> <li>li2</li> </ul> </div>
CSS
#wrapper { } #wrapper ul { width:50px; height:100px; border-style:solid; border-width:1px; list-style-type:none; } #wrapper ul li { border-style:solid; border-width:1px; }
This results in the following unordered list:
How to arrange list items on the left in an unordered list?
I tried float and margin in "#wrapper ul li", but this does not solve the problem.
+6
3 answers