Quote:
Originally Posted by Turtle91
margin tends to give space around the container, padding gives space within the container. Mostly noticeable when you are dealing with borders for example. However sometimes margin can be eaten by the renderer.
The box model diagram is the best thing to study for understanding...but it seems you got that. Application is just experience.
|
I believe your first paragraph is essentially what I wrote above. Is that right?
What's the container for a normal text paragraph?
If I'm reading your entire post correctly, including "margin can be eaten by the renderer" the major difference is that the renderer can shrink margins (but either not padding or they don't shrink padding as much) and that's why I'm seeing, for example, a 1em padding as taking more space than a 1em margin, at least in the Calibre editor (which is where I'm looking).