Fixing list indent in CSS

A very quick post for today.

I was tweaking the layout of Naque, our unique names generator.  It took a bit of fiddling to eliminate the indentation of the list elements in an unordered list.

E.g. <ul><li>first item</li></ul>

For some reason I couldn’t remove the ident.  Margin (left) was the obvious thing to change.  However, you also have to change the padding!

CSS, so nice, yet so confusing sometimes…

Tags: , , ,

Leave a Reply