4. The problem is that these default
style sheets are different in each
browser.
5. CSS resets aim to remove all
browser-specific styles, and then
build CSS up again from scratch -
so that each element will appear
the same in all browsers.
6. The simplest reset involves
removing the margin and padding
from all elements using the
universal selector.
*
{
margin: 0;
padding: 0;
}
7. However, this reset can
adversely affect some form
elements that should not have
their margins and padding
removed.
8. More advanced CSS resets aim
to reset almost every aspect of
every element:
• Set margins and padding to zero
• Set borders to zero
• Remove visual list styles
• Set fonts to a base
• Set font-weight and font-style to normal
9. Two of the most widely used
CSS resets are:
Eric Meyer Reset
http://meyerweb.com/eric/thoughts/2007/05/0
1/reset-reloaded/
YUI 2: Reset CSS
http://developer.yahoo.com/yui/reset/