Site Navigation

Dec 14, 2011

How do I un-indent an HTML list with CSS?

CSS ButtonI was looking around for the answer to this question and could not find a short answer. Thus the post.

Question: How do I un-indent an HTML list with CSS?

Answer: Set the padding for the <ol> or <ul> tags to zero.
ul { padding:0; }

That's it!
Post a Comment

Favorite Links Feed