• Article Written 
  • on 30.10.2009
  •  at 10:58 AM
  •  by admin

How to Create Your Own Simple Reset.css File

Most of the novice CSS designers don’t realize the importance of creating a “reset.css” file. Different browsers process code differently. What may look perfect in Firefox, may be off in Internet Explorer. There are many CSS Resets all over the internet that help combat browser problems. The major problem with using one of the many currently existing frameworks is that they aren’t tailored specifically to you.


How to Create Your Own Simple Reset.css File

Now its time to creat your own custom reset file. In this tutorial you will find How to Create Your Own Simple Reset.css File for your next website project. I hope you will enjoy this tutorial.

Step: 1 Remove margin and padding elements

html, body, div, span, h1, h2, h3, h4, h5, h6, blockquote, pre, em,
font, img, small, strong, sub, sup, ul, ol, li, dl, dt, dd, fieldset, form,
label, legend, tr, th, td, input, select,textarea
{
margin:0; padding:0;  border:0; outline:0;
}

Step:2 Reset typographic styles:

h1, h2, h3, h4, h5, h6
{
 font-size: 100%;
}
em
{
font-style: italic;
}
strong
{
font-weight: bold;
}

Step:3 Reset unordered lists:

ul, ol
{
list-style-type: none;
}

Step:4 Get rid of borders::

img, fieldset
{
border:0;
}

Here Is Our Final Simple Reset.css File.

html, body, div, span, h1, h2, h3, h4, h5, h6, blockquote, pre, em,
font, img, small, strong, sub, sup, ul, ol, li, dl, dt, dd, fieldset, form,
label, legend, tr, th, td, input, select,textarea
{
margin:0; padding:0;  border:0; outline:0;
}

h1, h2, h3, h4, h5, h6
{
 font-size: 100%;
}

em
{
font-style: italic;
}

strong
{
font-weight: bold;
}

ul, ol
{
list-style: none;
}

img, fieldset
{
border:0;
}

a  
{  
color: #333333;  
text-decoration: none;  
}  
 
a:hover  
{  
text-decoration: underline;  
}

Conclusion

These are just some of the tips that help me to write better code. I hope that tutorial will also help you to write better and clean code. Apply these Tips to your current and next projects, and you will surely appreciate the efforts.

If You Think that tutorial can be more better , Please share with us. Comment us

if you would like to receive more tutorial from us, please consider subscribing to our feed by RSS or by email.

Promote Us

  • Add to Mixx!
Ace Hosting India

Tags: ,

Untitled Document

6 Comments

  1. Looks good, thanks for sharing!

  2. How to reset CSS…

    Excelente articulo de la mano de Developer´s Paradise que nos enseña una de las tantas tecnicas que tenemos para resetear los estilos que vienen por defecto en los navegadores.
    Esto nos viene bien a todos porque asi podremos empezar a trabajar desde…

  3. That’s an interesting read…
    You have simpliefied the process to the basic units….nice read..

    regards
    Techshot Imagine´s last blog ..Techshot -Sports & Entertainment My ComLuv Profile

  4. Good job on the reset.css

    I use something similar to this.
    Design Informer´s last blog ..How to Mix Faces in Adobe Photoshop My ComLuv Profile

  5. You can safely add in Step 4 “a img { border: 0; }”

    And why on earth in this comment field is the captcha situated below the form button when JS is disabled? Great source of error and frustration!

  6. [...] Via Developer´s Paradise , nos muestra una de tantas formas de resetear [...]

Submit a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled