alamin_reb — 2012-10-16T10:26:41-04:00 — #1
Hy, I know its a very simple problem. But I am not understanding properly from w3schools. I surrender!! Please can you explain me properly with example what is CSS margin and padding and how it works.
Thanks in advance.
ralphm — 2012-10-16T10:47:57-04:00 — #2
It's better to ask a more specific question based on what you are trying to do—meaning that you should ideally post the HTML you are using and what CSS you've tried ... etc.
But here are two useful pages that give proper information on margin and padding:
dr_john — 2012-10-17T07:34:08-04:00 — #3
In simple terms, picture your content in a box.
The margin is the gap between the box edges and the neighboring boxes of content outside the box.
The padding is the gap between the box edges and the content inside the box.