Skip to content

Instantly share code, notes, and snippets.

@lfguerreiro
Created March 6, 2012 14:39
Show Gist options
  • Save lfguerreiro/1986618 to your computer and use it in GitHub Desktop.
Save lfguerreiro/1986618 to your computer and use it in GitHub Desktop.
CSS Rest
/* **************** GLOBAL CSS RESET ***************** Based on Eric Meyer Reset v1.6.1*/
html {margin:0;padding:0;border:0;font-size: 100%;}
body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, dialog, details, figcaption, figure, footer, header, hgroup, nav, section, summary, time, mark, audio, video
{ margin: 0; padding: 0; border: 0; outline: 0; font-weight:inherit; font-style:inherit; font-family:inherit; font-size: 100%; vertical-align: baseline; background: transparent; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; }
a img { border:none;}
/* remember to define focus styles! */
:focus { outline:0;}
/* remember to highlight inserts somehow! */
ins { background-color: rgb(255,255,153); color: rgb(0,0,0); text-decoration:none; }
mark { background-color: rgb(255,255,153); color: rgb(0,0,0); font-style: italic; font-weight: bold; }
del { text-decoration:line-through; }
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
/* tables still need 'cellspacing="0"' in the markup */
table { border-collapse:collapse; border-spacing:0;}
caption, th, td { text-align:left;font-weight:normal;float:none !important; }
table, th, td { vertical-align:middle; }
input, select { vertical-align: middle; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, dialog { display: block; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment