Created
March 29, 2010 21:04
-
-
Save thinkerbot/348410 to your computer and use it in GitHub Desktop.
css to remove default styles
This file contains hidden or 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
| /* From 'Transcending CSS' by Andy Clark */ | |
| /* http://www.transcendingcss.com/ */ | |
| /* Normalize margin, padding */ | |
| body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| /* Normalize font-size for headers */ | |
| h1, h2, h3, h4, h5, h6 { | |
| font-size: 100%; | |
| } | |
| /* Remove list-style for lists */ | |
| ol, ul { | |
| list-style: none; | |
| } | |
| /* Normalize font-style and font-weight to normal */ | |
| address, caption, cite, code, dfn, em, strong, th, var { | |
| font-style: normal; | |
| font-weight: normal; | |
| } | |
| /* Removes borders and spacing from tables */ | |
| table { | |
| border-collapse: collapse; | |
| border-spacing: 0; | |
| } | |
| /* Removes border from fieldset and img */ | |
| fieldset, img { | |
| border: 0; | |
| } | |
| /* Left-aligns text in caption and th */ | |
| caption, th { | |
| text-align: left; | |
| } | |
| /* Removes quotation marks from q */ | |
| q:before, q:after { | |
| content:''; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment