<html>
<head>
</head>
<body>
  <div style="-moz-transform: rotatex(45deg); -moz-transform-origin: 10px 30px -10px; width: 100px; height: 100px;">
    Test Text
  </div>
</body>
</html>