![]() |
![]() |
![]() |
|
|
#1 (permalink) |
|
Doh!!
Join Date: Oct 2006
Location: Niagara, ON
Posts: 3,786
|
Im strugeling to set a a:hover img opacity in IE8. Think Iv tried every possible solution now, gotten codeblind and can't figure this one out.
This is what I got: THE HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> /*strict for Internet Explorer 8*/
..... snip .....
<table class="effect" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
{foreach from=$hof var=$gallery counter=$counter}
<div class="thumbbox">
<a href="xpgt/click.php?id={$gallery.gallery_id|urlencode}&l=thumb&g=default&u={$gallery.gallery_url|urlencode}" target="_blank" title="{$gallery.description|htmlspecialchars}"><img src="{$gallery.preview_url|htmlspecialchars}" border="0" alt="{$gallery.description|htmlspecialchars}" width="200" height="147"></a>
</div>
{/foreach}
</td>
</tr>
</table>
THE CSS Code:
.effect
{
margin:0px 0px 0px 2px;
padding:0px 0px 0px 0px;
}
.thumbbox
{
float:left;
width:203px;
height:149px;
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
background:url('thumbback.png')no-repeat;
}
.thumbbox img
{
width:200px;
height:147px;
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
}
.thumbbox a:hover img
{
filter:alpha(opacity=80); /*for Internet Explorer 6/7*/
filter:"alpha(opacity=80)"; /*for Internet Explorer 8*/
-moz-opacity:0.80;
opacity:0.80;
}
|
|
|
|
|
|
#2 (permalink) |
|
Great White North
Join Date: Jan 2009
Posts: 433
|
I cant spot an error but I can offer this link, I used it a few times to get hover opacity.
Css3 opacity: transparency of an element in css The examples do work in FF and IE8 (did not test in 6/7)
__________________
linkspun - Premier Adult Link Trade Community - ICQ - 464/\281/\250 |
|
|
|
|
|
#3 (permalink) |
|
New User
Join Date: Sep 2009
Location: Tenerife
Posts: 16
|
Hi willwank,
change this: Code:
.thumbbox a:hover img
{
filter:alpha(opacity=80); /*for Internet Explorer 6/7*/
filter:"alpha(opacity=80)"; /*for Internet Explorer 8*/
-moz-opacity:0.80;
opacity:0.80;
}
Code:
.thumbbox a:hover img
{
filter:alpha(opacity=80); /*for Internet Explorer 6/7*/
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
-moz-opacity:0.80;
opacity:0.80;
}
and then it works fine. Regards Tina |
|
|
|
|
|
#4 (permalink) | |
|
Doh!!
Join Date: Oct 2006
Location: Niagara, ON
Posts: 3,786
|
Quote:
Can someone see if they get any opacity with IE8 on thumb hover on publicsexclip.com/index2.php ? |
|
|
|
|
|
|
#5 (permalink) |
|
New User
Join Date: Sep 2009
Location: Tenerife
Posts: 16
|
It can't work on IE8 'cause you haven't any rules for the IE opacity in your Stylesheet.
You only have in your "colors-Green.css": Code:
.thumbbox a:hover img
{
filter:"alpha(opacity=80)";
opacity:0.80;
}
Code:
.thumbbox a:hover img
{
filter:alpha(opacity=80); /*for Internet Explorer 6/7*/
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
-moz-opacity:0.80;
opacity:0.80;
}
|
|
|
|
|
|
#6 (permalink) | |
|
Doh!!
Join Date: Oct 2006
Location: Niagara, ON
Posts: 3,786
|
Quote:
![]() The rules are there, I just changed them for a second to try out something. Doesn't make any diff for me in IE8 regardless how it's done. ctrl+r and youll see. |
|
|
|
|
|
|
#8 (permalink) | |
|
Doh!!
Join Date: Oct 2006
Location: Niagara, ON
Posts: 3,786
|
Quote:
Something odd with my IE installation then. Hmmm... strange. What could cause my IE to not show the opacity... |
|
|
|
|
![]() |
| Thread Tools | |
|
|