...

View Full Version : background image working in Firefox but not IE6



dep
11-28-2005, 09:04 PM
Hello. Here's the code I'm trying to use..

In an external stylesheet:

#transfer {
position: absolute;
border-style: solid;
border-width: 0px;
padding: 25px 0 0 35px;
color: black;
background: url(images/panel-small.png) top left no-repeat;
}

And in the HTML:

<div id="transfer">
<a href="javascript:flyClosed('tabTransfer', 'transfer');">Close</a>
</div>


Pretty straight forward, yes? But it works in Firefox but not IE. The background-image will not display in IE. I've tried "background: " as well as "background-image:" -- no dice.

Any ideas?

dep

_Aerospace_Eng_
11-28-2005, 09:51 PM
Can you give us a link please? The code you posted looks fine.

ronaldb66
11-29-2005, 10:02 AM
IE probably has an issue with the dash in the file name: "panel-small.png"; try an underscore: "panel_small.png" instead.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum