Skip to content

Instantly share code, notes, and snippets.

@thinkerbot
Created March 29, 2010 21:04
Show Gist options
  • Select an option

  • Save thinkerbot/348410 to your computer and use it in GitHub Desktop.

Select an option

Save thinkerbot/348410 to your computer and use it in GitHub Desktop.
css to remove default styles
/* 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