View Single Post
Old 07-31-2015, 06:41 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,555
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Padding goes inside the border, margin goes outside. If you have no border, you won't see it.

Depending on how the sizes are computed, margin can be included or not in width and height, I think padding is always included.

Margin "collapses" between elements, padding doesn't. If you an element with "margin-bottom: 1em" followed by another with "margit-top: 2em", the separation between them will be 2em (if both have the same font size). If you use paddings, the separation will be 3em.
Jellby is offline   Reply With Quote