trivektor
06-19-2009, 12:57 AM
Hi,
I've been working on this http://tri.phongnguyen.net/mysterious_gap/. I'm not sure why there is a mysterious gap at the top of the page as shown in FF2 & 3. It seemed to be caused by margin-top:20px of #content. Removing this margin-top, or add a div with a specified width into #header-wrapper, right after #header, or use a border-top for #header-wrapper and everything works fine. I know these solutions but I still wonder why they work? Can someone please explain to me what happens? Thanks.
I've been working on this http://tri.phongnguyen.net/mysterious_gap/. I'm not sure why there is a mysterious gap at the top of the page as shown in FF2 & 3. It seemed to be caused by margin-top:20px of #content. Removing this margin-top, or add a div with a specified width into #header-wrapper, right after #header, or use a border-top for #header-wrapper and everything works fine. I know these solutions but I still wonder why they work? Can someone please explain to me what happens? Thanks.