CSS reset – What exactly does it do?

In the beginning, there was no standardisation on how styles worked, each browser implemented what it felt was right. One of the reasons you see so many questions about style errors in IE is because IE was the browser with the most dissimilarities from other browsers in terms of styling. Though IE has improved and so have other browsers they still apply their own borders, padding and margins, zoom, fonts to elements to give their own unique feel to pages. One example is, chrome gives its own yellow borders to text boxes. The “reset” actually “resets” all these styles to zero/none, so that you don’t see any styles you haven’t applied to your page.

If these styles are not “reset”, you will see unwanted styles/effects and things breaking. Its generally recommended to “reset” the browser’s styles.

Leave a Comment