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;
}
Which results in the following unordered list:

How do I align the list-items to the left in the unordered list?
I’ve tried float and margin in the “#wrapper ul li”, but that doesn’t solve the problem..
Add a
padding-left: 0ptto the#wrapper ulblock: