css - Difference between margin and padding? -


what difference between margin , padding in css? doesn't seem serve purpose. give me example of differences lie (and why important know difference)?

padding space between content , border, whereas margin space outside border. here's image found quick google search, illustrates idea.

enter image description here


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

c# - Binding attached property to IEnumerable -