juanc
12-20-2010, 05:12 PM
Hi
Could someone help me. If you can have a look at this link http://www.juanchandler.com/test2.html (the CSS is all in the head of the document rather than in an external file so you can just view source)
As you can see I've applied a 30px top margin to the div with the ID of "logo" but it ends up getting applied to the main container div ("header"). This has happened to me before and I don't know why.
Here's a much simpler version http://www.juanchandler.com/test1.html (again CSS is in the head of the document) but the problem doesn't occur this time.
The problem can be solved by using top padding to the containing div rather than a top margin for the div in question but I should have a better understanding of why the problem occurs in the first place.
If anyone can help please.
Could someone help me. If you can have a look at this link http://www.juanchandler.com/test2.html (the CSS is all in the head of the document rather than in an external file so you can just view source)
As you can see I've applied a 30px top margin to the div with the ID of "logo" but it ends up getting applied to the main container div ("header"). This has happened to me before and I don't know why.
Here's a much simpler version http://www.juanchandler.com/test1.html (again CSS is in the head of the document) but the problem doesn't occur this time.
The problem can be solved by using top padding to the containing div rather than a top margin for the div in question but I should have a better understanding of why the problem occurs in the first place.
If anyone can help please.