HTML & CSS
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.
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.
Thank you for the quick reply.Okay i will try this...
This topic is now closed. New replies are no longer allowed.