CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
CSS Combat
UL indent
mshort
Permalink to comment
#
November 2008
Is there a way to remove the indent caused by a ul element once you've set the list-style to none?
Argeaux
Permalink to comment
#
November 2008
have you tried putting the margin or padding to 0?
mshort
Permalink to comment
#
November 2008
yeah, unfortunately both the 0 padding and 0 margin didn't affect it
Argeaux
Permalink to comment
#
November 2008
have you got a code example?
plin25
Permalink to comment
#
November 2008
Are you seeing this problem in Internet Explorer?
In that case, try adding
list-style-position:outside;
That's worked for me before; for some reason just because the list-style-type is none, Internet Explorer still insists on applying indent
Add a Comment
In that case, try adding
That's worked for me before; for some reason just because the list-style-type is none, Internet Explorer still insists on applying indent