Skip to content

Instantly share code, notes, and snippets.

@pepebe
Created August 28, 2011 15:15
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pepebe/1176777 to your computer and use it in GitHub Desktop.
Save pepebe/1176777 to your computer and use it in GitHub Desktop.
css: reset class for unordered lists
ul.reset,
ul.reset li,
ul.reset ul li {
margin:0;
padding: 0;
text-indent: 0;
list-style-type: 0;
}
@pepebe
Copy link
Author

pepebe commented Aug 28, 2011

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.

@haikyuu
Copy link

haikyuu commented Jul 24, 2018

Small typo: list-style-type: none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment