Forum Moderators: not2easy

Message Too Old, No Replies

IE7 background image won't display

         

suede1976

3:03 am on May 28, 2009 (gmt 0)

10+ Year Member



I have been searching google and all the solutions to this problem don't seem to work for me.

#orangebanner in the background that extends 100% of the browser window width doesn't show up in IE 7. I have the orange bar in a blank div, absolutely positioned. It works fine in safari, FF, IE8 and opera. It may in fact be showing up, but with a left margin... if you need more code let me know.

don;t look at it in IE6, transparency issues screw it up to hell, will be redoing some aspect of that later.

here is the css for the orange bar.


#orangebar {
background:url(images/orangebg.png) repeat-x 0 0;
width:100%;
height:108px;
margin:0px;
top: 124px;
position: absolute;
z-index: -1;
}

HTML


<body>
<div id="orangebar"></div>
<div id="wrapper">
<div id="header">
<div id="nav">
<ul>
<li id="services"><a href="services.php">Services</a></li>
<li id="about"><a href="index.php?page=home">Who We Are</a></li>
<li id="contact"><a href="index.php?page=contact">Contact</a></li>
</ul>
</div>
<div id="logo"><h1><a href="index.php?page=home">A Closer Bond</a></h1></div>
</div><!-- END Header-->

enigma1

8:50 am on May 28, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The bg shows up here with IE7 fine. Just make sure you setup your html properly. I see here the div with "orangebar" it closes immediately. Have you tried moving it at the end?

<div id="orangebar">
.......
</div>