Margin and padding are two important attributes that are useful in providing appropriate spacing between HTML elements. In particular, they are useful in rendering proper spacing among block elements in a pure CSS layout. The difference between margin and padding and how they render to block elements will be discussed in this article.
[ No Comments ] Posted on December 27, 2008 under Cascading Stylesheet, Hypertext Mark-up Language