Posts Tagged ‘html’

Fixing list indent in CSS

Sunday, March 23rd, 2008

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…