jemz — 2012-08-31T09:36:15-04:00 — #1
Hi, I am confuse of this.when should i use margin and padding? when will be this applicable?please help me to enlighten my mind.Thank you in advance.
ralphm — 2012-08-31T10:37:29-04:00 — #2
Whenever you want some space.
So, if you have some divs side by side, you might give them some margins to push them apart.
You might also want some margins on your paragraphs to put some space between them.
You might have a box with a background color, and some text inside that. If you don't want the text to touch the edge of the box, put some padding on the box.
There are lots and lots of uses.
jemz — 2012-08-31T10:45:03-04:00 — #3
Thank you for the quick reply.Okay i will try this...