473,786 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image not showing at all in IE8

1 New Member
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 7523
ziycon
384 Contributor
Try putting a width and height into the div.art-Header-png DIV in the CSS.
Sep 25 '09 #2
Try to use "display:bl ock" 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
9109
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 http://www.saintrays.net/experiment2.html http://www.saintrays.net/experiment3.html View the source of each page to see the relevant javascript. All three
2
1736
by: thomaz | last post by:
I would like to know the correct way to save an image showing in a Picture Box???? Thanks....
7
1422
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 like this in my web.config: <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
3
2301
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 placed around the ball and which one of those images is displayed. Each pool cue image is in a slightly different orientation and the correct one is chosen to match the orientation of the cursor around the ball. Holding down the left mouse button...
8
2393
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: url(/Backpage/Images/pro.gif); display: inline; } Am I doing something wrong?
4
1663
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 the <atag. Is there a way to display linkable text in addition to the text and image that are showing. Does anyone know how to make this work with the script or another method of tagging? Please help!
3
1591
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" ImageUrl="http://www.gate.com/images/banners/gate_148x400_final.gif" AlternateText="www.Gates.com" /> and I even tried with the simple: <img src="http://www.gate.com/images/banners/gate_148x400_final.gif" border="0"> But still, nothing is showing up, anyone has clue about why its not
7
4966
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 much simpler. According to the O'Reilly CSS definitive guide book, it should work, but it isn't. On http://www.xmission.com/~wake/backgroundtest.html I have a background image showing through, but not showing up in the header areas. It is my...
2
1697
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
17680
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 there is a filename in the database I want to show the image. Showing is not a problem - but I dont want to show an empty placeholder box on the website if there is no file to display. Tried various methods to no avail. C# would be ideal as...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9496
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8989
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4066
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.