March 7, 200917 yr Yo yo, Just curious , why is it reset stylesheets always seem to give things like <p> a margin/padding of 0? http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ Isn't it kind of defeating the object when a <p></p> element should really have a margin because its defining the break in a paragraph. Since I have to declare a margin for p further down the cascade I see no use of resets giving p a margin of 0.
March 7, 200917 yr The majority of resets will try to reset most of the elements that could have different margins/padding when viewed in different browsers. The reason things like p are reset is because the margins/padding may differ slightly between IE & Firefox for example. When you redeclare the margins/padding of these elements, you're creating a new base from which to work on. Hence why these are sometimes known as 'base' stylesheets. There are some resets which also re declare the reset styles after being reset and give you a solid foundation from which to work on. Maybe one of these would be more suitable to you. Once such example is Tripoli.
Create an account or sign in to comment