Jump to content

Unknown Top Margin on body tag...


Recommended Posts

Greetings everyone! I've been working on the following page for a couple of days now, and I seem to be at stand still at the moment.  I have this mysterious gap at the top of my page.  I've validated my html and css, and I have the top margin to my body and #DivWrapper set to zero.  I'm wrecking my brain trying to figure out where this space/gap is coming from.  The url to the page is http://www.netunification.com/demo/

Please let me know if you have any suggestions.

So far I've only tested the page in Firefox for the mac, but I plan to test it with IE (PC) when I get a chance.  Hopefully it'll render correctly in both...

Thanks in advance...
Link to comment
https://forums.phpfreaks.com/topic/20983-unknown-top-margin-on-body-tag/
Share on other sites

What gap are we talking about? Do you mean the blue bit? Or do you emam the gap between the address bar of the browser and your menu?

Rather than adding zero margins to the top of body, ad zero margins and padding to the whole of the body, so instead of:
[code]body {
background-image: url(images/Net_U_bg.png);
background-repeat: repeat-x;
margin: 0px;
padding: 0px;
}[/code]

IE7 displays the layout fine!
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.