Created
August 28, 2011 15:15
-
-
Save pepebe/1176777 to your computer and use it in GitHub Desktop.
css: reset class for unordered lists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul.reset, | |
ul.reset li, | |
ul.reset ul li { | |
margin:0; | |
padding: 0; | |
text-indent: 0; | |
list-style-type: 0; | |
} |
Small typo: list-style-type: none
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As many people I'm using unordered lists to structure navigation lists. I don't want to reset ul and li tags everytime I layout a navigation list. Also, there are many occations where I have to reset the basic styles of an unordered list anyway. Therefore I add a ul.reset class to all of my stylesheets.