cd /news/developer-tools/eric-meyer-s-css-reset-html5 · home topics developer-tools article
[ARTICLE · art-11670] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Eric Meyer's CSS Reset (HTML5)

Eric Meyer's CSS Reset (version 2.0, dated January 26, 2011) is a public domain stylesheet that strips default browser styling from HTML elements by setting margins, padding, and borders to zero, and normalizing font sizes and baseline alignment. It also includes specific rules for HTML5 elements to ensure proper display in older browsers, and removes default list styles, quotation marks, and table spacing.

read1 min views25 publishedJan 24, 2012

reset.css

  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

Show hidden characters

/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126

   License: none (public domain)

*/

html, 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, 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, details, embed,

figure, figcaption, footer, header, hgroup,

menu, nav, output, ruby, section, summary,

time, mark, audio, video {

	margin: 0;

	padding: 0;

	border: 0;

	font-size: 100%;

	font: inherit;

	vertical-align: baseline;

}

/* HTML5 display-role reset for older browsers */

article, aside, details, figcaption, figure,

footer, header, hgroup, menu, nav, section {

	display: block;

}

body {

	line-height: 1;

}

ol, ul {

	list-style: none;

}

blockquote, q {

	quotes: none;

}

blockquote:before, blockquote:after,

q:before, q:after {

	content: '';

	content: none;

}

table {

	border-collapse: collapse;

	border-spacing: 0;

}
── more in #developer-tools 4 stories · sorted by recency
── more on @eric meyer 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/eric-meyer-s-css-res…] indexed:0 read:1min 2012-01-24 ·