I am confused on the meaning of "margin". Is it the distance from the browser's edges or the immediate parent's edge.
I have the following example with 3 DIVs with the ids a,b & c. I have embedded b inside a and c inside b. I have put margin-left and margin-top for b and c 20px.
Why is it leaving a space between browser's top edge and the div "a" but no space between browser's left edge and the div "a" ?
Please have a look at the following example, I am a bit confused on this. I expected that margin-top would behave the same way as margin-left.
I have put the colors just to show the difference between the DIVs.
thanks a lot,