unit
deg — CSS reference
360 degrees form one full turn. The unit follows the number without spaces. Negative rotations are valid in rotate(); prefer an explicit unit for zero because only some grammars accept unitless zero. Equivalent static orientations do not necessarily have equivalent animation paths.
Formal Syntax & Structure
css syntaxcss
transform: rotate(90deg);Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Numeric dimension lab</title><style>body {margin:0} .sample {height:12px;background:#006050}.sample {width:80px;height:24px;margin:40px} #a {transform:rotate(90deg)} #b {transform:rotate(90deg)}</style><body><div id="a" class="sample"></div><div id="b" class="sample"></div></body></html>