Jump to content

Recommended Posts

here is some css for the header div

 

body{
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%; 
max-height: 100%; 
background-color: #336622;
}

#framecontentLeft, #framecontentTop{ 
position: absolute;
top: 0; 
left: 0; 
width: 200px;
height: 100%;
overflow: hidden;
background-color: #336622;
color: white;
}

#framecontentTop{ 
left: 0px;
right: 0;
text-align: center;
width: auto;
height: 140px;
overflow: hidden;
background-color: #336622;
color: white;
}

* html body{ /*IE6 hack*/
padding: 140px 0 0 200px; /*Set value to (HeightOfTopFrameDiv 0 0 WidthOfLeftFrameDiv)*/
}

* html #framecontentTop{ /*IE6 hack*/
width: 100
}

 

and the div that it is supposed to use this is here

 

<div id="framecontentTop" style="width: auto;">
<img src="images/banner4.png" />
</div>

 

It contains only an image that I want centered across the top of the whole page. It works in FF but not in IE and I'm going nuts trying to figure out why  :confused:

Link to comment
https://forums.phpfreaks.com/topic/207762-ie-problems-with-header-div/
Share on other sites

Why are you absolutely positioning this?

 

because for some reason if I don't absolutely position it it goes all over the place in IE. It jumps down like some 200 pixels on the screen and the entire site starts there with a bunch of white space.

 

Sounds like a margin or padding issue or something

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.