Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 rotation-point

CSS3 rotation-point Property

Example

Rotate the h1 element by 180 degrees (top to bottom):

h1

{

rotation-point:

50

%

50

%

;

rotation:

180

deg

;

}

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently no browser supports the rotation-point property.


Property definition and usage

The rotation-point property is a pair of values defining a point offset from the top-left border edge.

**Tip:** The rotation-point property needs to be used together with the rotation property.

Default value: 0
Inherited: no
Version: CSS3
JavaScript syntax: object.style.rotation="180deg"

Syntax

rotation-point: value;

Value Description
*left top

left center
left bottom
right top
right center
right bottom
center top
center center
center bottom* | If only one keyword is specified, the second value will be "center". | | x% y% | A percentage value, referring to the border box width and height. |