I have a gallery of product images in an e-commerce site which the client wants to "pop-out" on rollover.
I wrote this CSS style to do it however while it works fine in Firefox .. not so in IE10.
Can anyone suggest a work-around with this code that will support cross browser?
Any help would be much appreciated.

<style type="text/css">

#btnProduct{
    -webkit-opacity: 0.5;
    -moz-opacity: 0.5;  
}
#btnProduct:hover{
    -webkit-transform: scale(1.06,1.06);
    -moz-transform:scale(1.06,1.06);
}
</style>

And on each image:

<a href="#"><img src="images/SC-Brand-buttons_30.png" width="200" height="193" border="0"  id="btnProduct" onMouseOver="mOver(this);" onMouseOut="mOut(this);"/></a>

not reading the question, javascript was not the answer, edited out wrongness

You can use add the vendor prefix for IE. For example, for IE 10, the transform will not work until you add the -ms prefix.

    -ms-transform: scale(1.06,1.06);

Thank you "almostbob" for your quick reply.
That's close, however is there any way to stop the scaling of one image from moving the position of the other images in the gallery (like Firefox does) or is that some we'd have to live with to make it function in IE?

I just tested the code above with a few images, including the -ms prefix on the transform and did not observe the images being pushed by the image that was hovered. I tried this on IE 10. When I hover over an image, the image scales as expected, but the other images that surround it do not move.

Do you have a link to where your page is located to see it? Code on jsfiddle?

Thank you Jorge. Good idea, but didn't seem to make any difference. It seems IE can not 'see' the scale at all. Another reason to dislike IE!

Sorry Jorge the issue with the pushing images was in responce to "almostbob's" revised code suggestion where width and height values were applied to the onMouseOver and onMouseOut image calls.

I have a very crude test page built with filler text and one repeated image: http://www.popeyescanada.com/sc-test.html

Ok, I see another thing that is adding a problem here. You did not include a doctype at the top of the document. When IE does not see the doctype, it goes into quirks mode. When i forced the browser to go into standards mode, i did observe that the "pop-up" effect was working.

To add a doctype, the first line of the document should have this...

<!DOCTYPE html>

This instructs the browser (especially IE) that it should follow standards mode and to expect an HTML5 doc.

By the way, i dislike IE as well. Most people that develop eventually do.

How embarrassing! In my effort to cut corners and make a quick 'n dirty test page I neglected to include the doctype!

I've corrected it but still see no change.

hmmm..

I just tested the site using IE10 on Win 8 and all of the boxes had the rolloever effect, at least the effect of scaling out without affecting the neighboring images. Same result on Chrome and Firefox.

If you are seeing it on IE10 then that's good enough for me. Tests fine for me on Firefox and Chrome. Could be a IE cashing thing on my end.

Thank you SO much for your help Jorge. It is very much appreciated.

do all those images really have the same ID?
multi-items should be class
given the images are all the same size
can it be done in css as

#btnProduct{ -webkit-opacity: 0.5; -moz-opacity: 0.5; width:200px; height:193px; }
#btnProduct:hover{ width:212px; height:205px; }

as class

.btnProduct{ -webkit-opacity: 0.5; -moz-opacity: 0.5; width:200px; height:193px; }
.btnProduct:hover{ width:212px; height:205px; }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.