Sorry, but that’s a really bad idea. A single global reset is likely to have all sorts of knock-on effects on other elements throughout the site. Work out exactly which elements you want to zero the margin and padding on, and then just apply the rule to those.
Stevie D, that is exactly a matter of opinion. I prefer to set everything to zero and add in whatever I want where I want it, regardless of any browser defaults, others use more customized resets. Nothing wrong with either approach, merely a matter of personal preference.
Stevie D, that is exactly a matter of opinion. I prefer to set everything to zero and add in whatever I want where I want it, regardless of any browser defaults, others use more customized resets. Nothing wrong with either approach, merely a matter of personal preference.
Form controls. Don’t remove their padding. Opera and others won’t LET you add it back.
This makes the little arrows on dropdowns cover up the dropdown text.
It removes the visual feedback of depressing submits. Though this you can usually add back in manually but nobody I know who uses * to remove padding has ever bothered. It’s there for accessibility reasons. Kinda like how people who use a reset to remove outline from clickable elements never seem to bother adding :focus styles in later (not the fault of the reset, but this is how web developers work… let’s not encourage them).
That, and the number of elements you’re using on a page with goofy padding can be counted on one hand, so instead of getting a browser penalty, remove padding from those 2 or 5 elements, and spare the form controls.