Log in

View Full Version : Margin/Padding



TheJoshMan
07-31-2008, 12:00 AM
This may be considered a newbie question, but I don't think I fully comprehend it, so I'm gonna ask anyway.

What EXACTLY is the difference between "margin" and "padding"?

TheJoshMan
07-31-2008, 12:11 AM
haha, nevermind. I figured it out. DUH.

Margin defines space outside the "object" and padding defines space within it.

Not sure why I didn't fully understand that, it's pretty simple.

rangana
07-31-2008, 01:35 AM
Glad you have it figured out. I was having this dilemma few months ago. In fact, I have the sites which helped me understand bookmarked:
http://htmldog.com/guides/cssbeginner/margins/
http://www.webcommercesolutions.co.uk/blog/?p=6

You might find it useful at your end too.

TheJoshMan
07-31-2008, 01:37 AM
thanks for the links.

Nile
07-31-2008, 01:42 AM
This also helps me a LOT:
http://lesliefranke.com/files/reference/csscheatsheet.html

TheJoshMan
07-31-2008, 01:47 AM
oooh, I like that one. Short and sweet and to the point.