NextIndexPrevious

CSS3 Examples

5. CSS3 rotate() example.

<!DOCTYPE html>
<html>
<head>
<title>Untitled Document</title>
<style>
#box{
	width:150px;
	height:150px;
	font-size:26px;
	background-color:#0CF;
	border-radius:5px;
	box-shadow:10px 10px 2px #999999;
	text-align:center;
	padding-top:20px;
	text-shadow:2px 2px 2px #666666;
	transform:rotate(30deg);
	-webkit-transform:rotate(30deg);
	-ms-transform:rotate(30deg);
}
</style>
</head>

<body>
<div id="box">
2D rotation
</div>
</body>
</html>
Output :

2D rotation




Developed by


World Wide Web Consortium

World Wide Web Consortium