CSS Rotation Property

CSS 1

CSS 2

CSS 3

No No Yes

Description

‘Rotation’ 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’.

Syntax

rotation: [value];

Possible values

  • [angle]

Initial Value

0

Applies To

block-level elements, inline-table and inline-block

Inherited

No

Media

Visual

Example

.class {
  rotation: 90deg ;
}


View All CSS Properties