Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

seventeen

macrumors member
Original poster
Apr 9, 2009
41
0
Denton, Tx
I'm working on a website right now for a client in which, the logo image in the header of the page mysteriously does not show up when view in IE6 or IE7. IE8 works fine as well as all other major browsers.

And it's not all images on the page, just one.

Has anybody ever heard of anything like this. I haven't.

Technically I'm under an NDA on this one, so I cant give you the straight code. I'll have to negotiate some sort of copy where the issue remains.

Any help would be genuinely appreciated.

Thanks!
 
You could try to reproduce the problem with a smaller amount of code. This will help diagnose the problem as well since you'll be minimizing the potential problem pieces. It could be a CSS issue with IE that is resolved in modern standards. If you can reproduce with smaller amount of code maybe you can post that part without issues.

How are you displaying the image e.g., background image, img tag?
 
I had to remove a lot of info for them to let me post this, so thats what all the #'s are. Regardless, you can see how its laid out. The image in question is a .png file with transparency. However, I am using the javascript unitpngfix for IE6,

HTML:
	<div id="head_wrap">
		<div id="head">
			<!-- THE IMAGE BELOW DOES NOT DISPLAY IN IE 6 OR 7,
				BUT IT DOES IN ALL OTHER MAJOR BROWSERS -->
			<h1 id="logo" class="left"><a href="#"><img src="#.png" alt="#" /></a></h1>
			<ul id="head_nav" class="right">
				<li class="first"><a href="#">#</a></li>
				<li><a href="#">#</a></li>
				<li><a href="#">#</a></li>
				<li><a href="#">#</a></li>
				<li><a href="#">#</a></li>
			</ul>
			<div class="clear"></div>
		</div> <!-- END #head -->
	</div><!-- END #head_wrap -->
and css...
PHP:
div#head_wrap {
	width: 100%;
	background-position: 0px -8px;
	background-repeat: repeat-x;
	background-color: black;
	background-image: url(bar_gradient1.png);
	color: #fff;
	border-bottom: #109033 4px solid;
}

div#head {
	width: 960px;
	margin: 0 auto;
}

h1#logo {
	width: 443px;
	height:36px;
}
 
did you try changing it to gif to see if it's the PNG fix. Sounds to me you may have something in your JS causing the issue. IE is typically where it won't work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.