How to Reset CSS?

Use styles below to remove browser's default styling:

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;

}

table

{

    border-collapse:collapse;

    border-spacing:0;

}

fieldset,img

{

    border:0;

}

 

address,caption,cite,code,dfn,em,strong,th,var

{

    font-style:normal;

    font-weight:normal;

}

 

ol,ul

{

    list-style:none;

}

 

caption,th

{

    text-align:left;

}

 

h1,h2,h3,h4,h5,h6

{

    font-size:100%;

}

 

q:before,q:after

{

    content:'';

}


Posted on Wednesday, March 19, 2008 by | Comments (1) | Add Comment

Comments

Gravatar

Re:How to Reset CSS?

This is great and have a look on http://www.thikbro.com/blog/css/reset-css/

There also posted some CSS Resetting system

Posted on 1/4/2011 8:34:05 AM by isuid2007 #

New Comment

Your Name:
Email (for internal use only):
Comment:
 
Code above:

Categories

Recent Tweets

  • Simon Ince's Blog: Hierarchies with HierarchyID in SQL 2008 http://t.co/xSDwiF6rRS.
  • Visual Studio 2010 WAS painfully slow - CodeProject http://t.co/Usba1x6CZy

Valid HTML5