/    Sign up×
Community /Pin to ProfileBookmark

Ie Image Sprite Problems

I am doing a rollover effect, currently by switching between two background images, however I want to change it to use a foreground and background image, hide the foreground image on hover so you see the background image. The way it is now can be seen here, [url]http://www.affordable-solar.com/grid.tie.wind.htm[/url]
The way I’m trying to do it locally on our test server is like this(one link example)

a.kit:hover span img{visibility:hidden; display:none;}
a.gridtie{background:url(/images/kit_gridtieb.jpg); position:absolute; left:252px; top:120px; height:271px; width:240px;}

<a class=”kit gridtie” href=”/grid-tie.residential.htm” title=”GRID TIE RESIDENTIAL SOLAR”><span><img alt=”GRID TIE RESIDENTIAL SOLAR” src=”/images/kit_gridtie.jpg” ></span> </a>

Works great it firefox, but not at all in ie, ie just shows the foreground image all the time. Anyone have a solution for this???

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 22.2006 — Works in IE7, but not of course in IE6. The easiest way is to swap the background image. Why use background and foreground?
Copy linkTweet thisAlerts:
@ripper2020authorNov 22.2006 — I want to use background and foreground just as safety net, that way if they have css disabled or for applications that don't read css, at least one picture will still show up.
×

Success!

Help @ripper2020 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...