D
David Graham
Hi
I have a test page at:
http://p0c79.phpwebhosting.com/~p0c79/test130.html
The first 3 divs are not nested (shouldn't really have named these
grandparent etc) - they are just a control to see what the bottom margin
looks like on each div.
The page looks the same in IE6 and Mozilla 1.4, but the last set of divs are
much more spread out in Opera 7.1 - which is why someone in an earlier
thread was having problems with his footer div being below the bottom of the
view port.
As I understand it, vertical margins collapse, so I was expecting a single
bottom margin equal in size to the largest bootom margin set i.e. the 6em
set on the child green div. This would mean that the red and blue bottom
borders would coincide at 6em below the green div. This is not what is
happening. I would appreciate it if someone could point out were I am
interpreting vertical margin collapsing wrongly and why is Opera looking so
different to IE6 and Mozilla 1.4
thanks
David
I have a test page at:
http://p0c79.phpwebhosting.com/~p0c79/test130.html
The first 3 divs are not nested (shouldn't really have named these
grandparent etc) - they are just a control to see what the bottom margin
looks like on each div.
The page looks the same in IE6 and Mozilla 1.4, but the last set of divs are
much more spread out in Opera 7.1 - which is why someone in an earlier
thread was having problems with his footer div being below the bottom of the
view port.
As I understand it, vertical margins collapse, so I was expecting a single
bottom margin equal in size to the largest bootom margin set i.e. the 6em
set on the child green div. This would mean that the red and blue bottom
borders would coincide at 6em below the green div. This is not what is
happening. I would appreciate it if someone could point out were I am
interpreting vertical margin collapsing wrongly and why is Opera looking so
different to IE6 and Mozilla 1.4
thanks
David