Rotate 90 Degrees CSS

Glenn Glenn's Blog 0 Comments

If you want to rotate an element by 90 Degrees (or indeed a different degree of your choosing) then apply the following class to the element/div:- [css] .rotate-90 { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); -o-transform: rotate(90deg); transform: rotate(90deg); } [/css] Here we should be covering all browsers. Rotate Using Less Less takes a lot of the hard …