Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery applying css opacity

I have tried to get the opacity to work in IE, I am testing in IE8 at the moment, Chrome etc works fine but IE8 is terrible.

My code has been:

$('#mydiv').animate({'opacity': '0.5'});

and

$('#mydiv').css('opacity', 0.5);

The opacity is applied to the images held within this div but none of the text, it's very infuriating :( can anyone help me? Thanks in advance.

like image 829
green_arrow Avatar asked Apr 13 '12 09:04

green_arrow


1 Answers

try with this:

-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=75)"; /* IE 8 */
filter: alpha(opacity=75); /* older IEs */

hope this is helpful for you

like image 97
Rony SP Avatar answered Sep 30 '22 01:09

Rony SP