Avatar of kkbenj
kkbenj
 asked on

CSS Background image not displaying in IE only

I have a very simplistic page (so far) with a background image in the header portion.  Fine in FF and Chrome but nothing displays in IE8.

CSS:
header hgroupcorp h1
{
    width: 450px;
    height: 55px;
    margin-bottom: 0;
    float: left;
    background: url("/images/d.jpg") no-repeat;
}

Open in new window


HTML:
    <header>
		<hgroupcorp>
			<h1></h1>
		</hgroupcorp>
	</header>

Open in new window


I feel like I've tried everything suggested here in IE but will try any suggestions anyone can offer.

Thanks!
CSS

Avatar of undefined
Last Comment
Neil_Bradley

8/22/2022 - Mon
Dave Baldwin

Check the image and make sure it is RGB and not CMYK.  IE doesn't like CMYK but the other browsers will display it just fine.
kkbenj

ASKER
under properties of the .jpg, it lists Color Representation as sRGB.
ASKER CERTIFIED SOLUTION
Dave Baldwin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Neil_Bradley

Dave is right. You can't use html 5 tags ie8 or below. To fix the issue add this to your head
<!--[if lt IE 9]>
     <script src="html5shiv.js"></script>
<![endif]-->

The shiv can be downloaded here http://code.google.com/p/html5shiv/
N
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
kkbenj

ASKER
Dave - thanks.  That did the trick!
kkbenj

ASKER
Neil_Bradley - thank you for the solution.  I didn't see it until after I closed out.
Neil_Bradley

No problems. Pleased that you have it squared away.
N
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.