473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Image not showing at all in IE8

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.  
Sep 16 '09 #1
2 7509
ziycon
384 256MB
Try putting a width and height into the div.art-Header-png DIV in the CSS.
Sep 25 '09 #2
Try to use "display:block" in the div´s CSS
Oct 22 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: cjl | last post by:
OK: I am really scratching my head over a preload / image swapping problem, so I started conducting experiments: http://www.saintrays.net/experiment1.html...
2
by: thomaz | last post by:
I would like to know the correct way to save an image showing in a Picture Box???? Thanks....
7
by: karthikeyan | last post by:
Hi, I am having some problems hosting my website. Everything works fine in my local machine but when I upload to propduction server, my images won't load properly. I have my state configuration...
3
by: Mark Szlazak | last post by:
The following page simulates a pool cue and cue ball: http://members.aol.com/myscript/cue.html Mouse cursor position around the cue ball determines where a roll-over of 179 pool cue images is...
8
by: Gabriella | last post by:
Hi, I have the CSS class below, and the image (pro.gif) is not showing on my page. It is showing ONLY where's some text in the div, but all I need is the image itself. ..pro {background-image:...
4
by: marco | last post by:
Hi everyone, I would like to add hyperlinks to the text appearing or another when working with the onClick event. Unfortunately this version is pulling the text from the (title) attribute withing...
3
by: Switch4Mac | last post by:
Hi, I want to insert an ad in my MasterPage. So in the MasterPage, I have this piece of code: <asp:Image ID="GatesAd" runat="server"...
7
by: Paul Wake | last post by:
I'm missing something regarding positioning background images. It's probably obvious, and I hope someone here will note it for me. I'm trying to do something like the complex spiral thing, only...
2
by: Icon Iconoclast | last post by:
http://deepanjan.somee.com/ Can you guys verify this? Can you tell me why this is happening? What's the remedy?
6
by: gs430mw | last post by:
I am trying to hide an image in a formview if the imageurl is blank. Site is driven by database - and if there is nothing in the database as a picture filename then I want to hide the image - If...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.