View Full Version : Unable to rotate the div by an angle (i.e.,90, 180,270, 360 degrees) in Firefox

05-07-2009, 11:43 AM
Hi Team,

We are unable to rotate the div by an angle(90, 180,270 etc) in firefox browser where as it works in Internet explorer.

Please find the below code for Internet explorer.
var div= document.getElementById('contentTest');
div.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";

Can u please provide us the approach inorder to rotate the div in mozilla firefox.

05-07-2009, 06:01 PM
Not an endorsement, but seems to work ...

Cross-browser image rotation with JavaScript and CSS (http://www.alexatnet.com/node/152)