or control the rotation to specific degrees with CSS
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
transform: rotate(35deg). More in this article. For the moment, you have to add in the vendor-specifictransformsas well, so for instance (cribbing from the article):You can do a 35-degree angle for older IEs that require
filter. This will work in IE7 and IE8:Note, however, that the matrix transformation will leave you with a different offset than the CSS3 way shown above. You can compensate on the CSS3 side by setting the
-webkit-transform-origintoleft top, or on the IE side by positioning your element with a conditional style sheet or CSS hack.Check out the MS docs or the cool page I used to generate the above.