are margin and padding most disbalanced thing among all browser?

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2010-05-22T02:06:32Z Indexed on 2010/05/22 2:10 UTC
Read the original article Hit count: 168

Filed under:

While some people use this reset. * { margin: 0; padding: 0; }

Is every element has default margin and padding in each browser default stylesheet( but differently)?

While eric meyer collected some most used selectors and given this to all

{
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

Are those elements has different type of font sizes? different baseline, different background, outline and border?

if we keep besides cons of universal selector.

is this

* {
        margin: 0;
        padding: 0;
        border: 0;
        outline: 0;
        font-size: 100%;
        vertical-align: baseline;
        background: transparent;
    }

better than this

* {
  margin: 0;
  padding: 0;
}

© Stack Overflow or respective owner

Related posts about css