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.
|