Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS3 rotate alternative?

I am using the CSS3 rule "rotate" to rotate a div containing text. You can see the page here: http://vitaminjdesign.com/v2/socialmedia.html. I am looking for cross-browser support for rotating the div; however, this CSS3 rule won't work on IE. Is there a jQuery option or another JavaScript solution that will yield the same result, with cross-browser compatibility?

like image 860
JCHASE11 Avatar asked May 01 '10 03:05

JCHASE11


People also ask

How do you rotate an object in css3?

CSS rotate() The rotate() function accepts one argument: the angle at which you want to rotate your web element. You can rotate an element clockwise or counter-clockwise. Let's take a look at the syntax for the rotate() function: transform: rotate(angle);

How do I rotate an image 180 degrees CSS?

Rotating images in real-time with the rotate parameter To rotate the image by 180 degrees, we need to add rt-180 transformation parameter to the URL, as shown below. The resulting image is the same as passing 180deg to the rotate function in CSS.

How do I rotate a div 90 degrees?

An element can be rotated 90 degrees by using the transform property. This property is used to move, rotate, scale and others to perform various kinds of transformation to elements. The rotate() transformation function can be used as the value to rotate the element.


1 Answers

Using Sandpaper, you can use this CSS rule:

-sand-transform: rotate(90deg);

And it'll work in every browser - even in IE.

like image 193
Douwe Maan Avatar answered Sep 28 '22 05:09

Douwe Maan