<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Transform property (reference)</title> | |
</head> | |
<body> | |
<p>Rectangles should be rotated.</p> | |
<div style="background: green; width: 200px; height: 200px; position: absolute; top: 100px; transform: rotate(90deg)"></div> | |
<div style="background: green; width: 200px; height: 200px; position: absolute; top: 300px; transform: rotate(90deg)"></div> | |
</div> | |
</body> | |
</html> |