Reset CSS to zero

A useful code snippet to ensure all of margins and padding of your HTML elements are set to zero in your stylesheet

Useful to ensure all of margins and padding of your elements are set to zero in your stylesheet. Include this at the top of your CSS stylesheet. A better way is to include all of your tags at the top of the stylesheet and then set the margin and padding to zero. Eric A. and Kathryn S. Meyer have a great reset.css file that can be downloaded and used for free.

* {
margin: 0;
padding: 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *