i totally understand the box model. this question is more about trying to pin down a semantic methodology regarding when to use margins and when to use padding.
her
The difference is where the border sits.
The border sits SMACK DAB in the middle of the margins and padding. If you specify margins, that is white space OUTSIDE the border.
If you specify padding, that is white space INSIDE the border (pushes the border further out from the element)
Can't show you here due to css stripping, but try this out:
i have margins, padding and a border.
i have margins, and a border.
i have padding and a border.
other stuff!
padding brings in background color of the element, margins are basically transparent
some elements ( like td ) seem to ignore margins, while they respond to changes in padding