The rotation property rotates a block-level element counterclockwise around the point given by 'rotation-point'. The border, padding and content are rotated, and also any background that is not 'fixed'.

  • Initial value0
  • Applies toBlock-level elements, inline-table and inline-block
  • InheritedNo
  • MediaVisual
  • Computed value0deg ≤ angle < 360deg
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript
Formal syntax: <angle>

rotation: 90deg;
  • <angle>
.class {
   rotation: 90deg;

Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.