Search This Blog

Friday, May 21, 2010

are margin and padding most disbalanced thing among all browser?

Programmer Question

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;
}


Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails