Created
November 7, 2012 14:56
-
-
Save Usse/4032069 to your computer and use it in GitHub Desktop.
General purpose CSS reset
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
/*RESET*/ | |
* {margin:0;padding:0;text-decoration:none;font-size:1em;outline:none;} | |
code, kbd, samp, pre, tt, var, textarea, input, select, isindex, listing, xmp, plaintext{font:inherit;font-size:1em;white-space:normal; } | |
/*dfn, i, cite, var, address, em { font-style: normal; }*/ | |
a, img, a img, iframe, form, fieldset, abbr, acronym, object, applet, table { border: none; } | |
table { border-collapse: collapse; border-spacing: 0; } | |
caption, th, td, center { text-align: left; vertical-align: top; } | |
q { quotes: "" ""; } | |
ul, ol, dir, menu { list-style: none; } | |
sub, sup { vertical-align: baseline; } | |
a { color: inherit; } | |
hr { display: none; } /* we don't need a visual hr in layout */ | |
font { color: inherit !important; font: inherit !important; color: inherit !important; } /* disables some nasty font attributes in standard browsers */ | |
marquee { overflow: inherit !important; -moz-binding: none; } | |
blink { text-decoration: none; } | |
nobr { white-space: normal; } | |
/*IE specific bug fixes*/ | |
.content legend{margin-bottom:1.6em} /* IE form margin bug */ | |
sup, sub{font-size:100%} /* IE superscript & subscript bug */ | |
* html .content textarea, * html .content input{padding:0} /* IE < 7 form fix */ | |
.content input[type='submit'], .content input[type='button']{padding:0} /* IE 7 button fix */ | |
.content legend+*{margin-top:0} /* we already added legend margin */ | |
a abbr, a acronym{text-decoration:underline} /* IE 7 bug */ | |
* html .content blockquote *{margin:.8em 0} | |
input.checkbox{border:0;} | |
/*END RESET*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment