Closed Thread Icon

Preserved Topic: css Pages that link to <a href="https://ozoneasylum.com/backlink?for=15837" title="Pages that link to Preserved Topic: css" rel="nofollow" >Preserved Topic: css\

 
Author Thread
randy
Paranoid (IV) Inmate

From: Blackstone, Ma, USA
Insane since: Jan 2001

posted posted 03-09-2001 20:13

what is the difference between padding and margin when it comes to box elements?

Boudga
Maniac (V) Mad Scientist

From: Jacks raging bile duct....
Insane since: Mar 2000

posted posted 03-09-2001 20:51

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

randy
Paranoid (IV) Inmate

From: Blackstone, Ma, USA
Insane since: Jan 2001

posted posted 03-09-2001 22:28

okay that makes sense
thanks

Allewyn
Maniac (V) Mad Scientist

From: Solitary confinement
Insane since: Feb 2001

posted posted 03-09-2001 22:45

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.

« BackwardsOnwards »

Show Forum Drop Down Menu