![]() Preserved Topic: css (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
![]() what is the difference between padding and margin when it comes to box elements? |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
![]() I could be wrong but I believe margins control blank space around an element and padding controls space from the border of your div inward... |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
![]() okay that makes sense |
Maniac (V) Mad Scientist From: Solitary confinement |
![]() One example is that the distance from the edge of the page to your outside table border is a margin. The distance from the inside of your table border to a contained object would be padding. |