I’m posting more content from my old Pro Web Design Course (which you can no longer buy).

Are you confused by the difference between margin and padding in CSS?

And what effect do margin, padding, and border have on the width or height of an element (i.e. the box model, read more)?

This short (11-minute) video may help to answer your questions.

Note: The video was recorded 2011, so the browser versions are fairly old. But the principles still hold true.

About the author

Ben Hunt

Ben has over 20 years' experience in web design and marketing, and is one of the most influential figures on the subject of effective web design. He has written a bunch of books and spoken at multiple conferences internationally. In 2015, Ben created Open-Source Marketing, which promises to turn the practice of marketing upside down.. Find out more at http://opensourcemarketingproject.org

Leave a comment:

Notify me of followup comments via e-mail. You can also subscribe without commenting.