Eric Meyer's CSS reset

Post Reply
User avatar
studiomaqs
Posts: 153
Joined: Sat Oct 20, 2007 7:33 pm
Full Name: Mostaque Ahammed
Expertise: Web Design

We reset the default style sheet by various way. Most of use Universal selector to reset. But Eric Meyer provides us a more effective way to reset the style sheet. Here is it.

Code: Select all

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, 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 {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}

/* remember to define focus styles! */
:focus {
	outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}


User avatar
pagol
Insanely Distorted
Insanely Distorted
Posts: 3298
Joined: Sat Nov 03, 2007 8:41 pm
Full Name: Koba
Expertise: Jack of all, master of NONE
x 81

humm thanks for sharing this.. helpful and cool
** KISS Principle **
User avatar
sweetafroza
Proud Member
Proud Member
Posts: 1979
Joined: Fri Jun 27, 2008 8:30 pm
Full Name: Luthfunnahar Hussain
Expertise: Web Design

hmm really healpful .. :)
:)
webdesignertushar

MAC mama thnx it will help me...........
Post Reply

Return to “CSS”