CSS Browser Compatibility Improvement Tip

CSS Browser Compatibility Improvement Tip

6 June 2009

To avoid inconsistencies across different browsers, always use the following CSS code unless you specify a different value for padding and margin. Some browsers do not set these properties to zero by default.

html {  
padding: 0px;  
margin: 0px;  
}  
body {  
padding: 0px;  
margin: 0px;  
}