Connecting Tech Pros Worldwide Help | Site Map

Image not showing at all in IE8

Newbie
 
Join Date: Sep 2009
Posts: 1
#1: Sep 16 '09
I am sure this is something I missed, but I am trying to place two images into my header. One is the background image, one is the logo image.

I can get this to work in Mozilla, but it isn't working for IE8.

Here's my HTML-

Expand|Select|Wrap|Line Numbers
  1. <div class="art-Header">
  2.     <div class="art-Header-png">
  3. <img src="MYSOURCE" width="auto" height="auto" alt="LOGO" /></div></div>
  4.  
Here's my CSS-

Expand|Select|Wrap|Line Numbers
  1. div.art-Header
  2.  
  3. {
  4.  
  5.     margin: 0 auto;
  6.  
  7.     position: relative;
  8.  
  9.     z-index: -1;
  10.  
  11.     width: 964px;
  12.  
  13.     height: 150px;
  14.  
  15.     background-image: url('../images/Header.png');
  16.  
  17.     background-repeat: no-repeat;
  18.  
  19.     background-position: center;
  20.  
  21. }
  22.  
  23. div.art-Header-png
  24.  
  25. {
  26.     position: absolute;
  27.  
  28.     top: 15px;
  29.  
  30.     left: 300px;
  31.  
  32.     z-index: 0;
  33.  
  34. }
  35.  
Familiar Sight
 
Join Date: Sep 2008
Posts: 252
#2: Sep 25 '09

re: Image not showing at all in IE8


Try putting a width and height into the div.art-Header-png DIV in the CSS.
Reply