/    Sign up×
Community /Pin to ProfileBookmark

Opacity in ie6 & ie7 not working

Hi there

I am trying to create a gallery whereby the pics are set to a lower opacity and when you rollover them, they light up to 100% opcaity. My gallery in working finr in firefox, but its not working in any of the IE’s.

Can anyone please assist me with a fix for this?

My code is as follows:

HTML
—————————

<ul id=”gallery”>

<li><a href=”images/Africa/Image1Large.jpg” title=”A Giraffe” rel=”lightbox[africa]”><img src=”images/Africa/image1.jpg”></a></li>

<li><a href=”images/Africa/Image1Large.jpg” title=”A Giraffe” rel=”lightbox[africa]”><img src=”images/Africa/image1.jpg” alt=”a giraffe”></a></li>

<ul>

CSS
—————————

ul#gallery {
list-style:none;
width: 960px;
margin: 0 auto;
margin-top:15px;
}
ul#gallery li, ul#gallery li img {
float:left;
width:148px;
border:0px;
margin-right:1px;
margin-bottom:1px;
filter: alpha(opacity=50);
-moz-opacity: .5;
opacity:0.5;
}

ul#gallery li a img:hover {
border:0px;
filter: alpha(opacity=1.0);
-moz-opacity: .10;
opacity:1.0;
}

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@rihamfathyMar 31.2009 — i think your css should be looking like this i tested it and it works

ul#gallery {

list-style:none;

width: 960px;

margin: 0 auto;

margin-top:15px;

}

ul#gallery li, ul#gallery li img {

float:left;

width:148px;

border:0px;

margin-right:1px;

margin-bottom:1px;

}

ul#gallery li a img:hover {

border:0px;

filter: alpha(opacity=40);

opacity: 0.4;

}
Copy linkTweet thisAlerts:
@leighchicauthorMar 31.2009 — Thank you for your response, but that didnt work in IE for me. Also, its not what i want.

I need the images to be at 50&#37; and when rolled over they become 100% - i need a fix that will enable this to work in IE 7 and 6.
×

Success!

Help @leighchic 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 6.1,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...