Photo from Melbourne
 

Archive

Posts Tagged ‘Reset’

Essential CSS: The Reset

January 16th, 2009
Resetting CSS styles will save you a lot of time

Resetting CSS styles will save you a lot of time

One of the most essential tools I have when I build a web site is the CSS reset. What the reset does is basically strip some or all the default styling (like padding, margins, font-sizes, etc) applied to HTML elements by different web browsers. The reason we want to do this is that each browser has its own default set of styles, and guess what – they differ from browser to browser. Starting from a fresh slate is often the easiest way to shorten development time and get the most predictable cross-browser results (though some designers, like Jonathan Snook, @snookca, don’t personally see a strong need for resets). If you see the benefit of using CSS resets, creating your own reset is very doable, and honestly not super difficult, but why re-invent the wheel? Read more…

CSS/Design