Skip to content

Instantly share code, notes, and snippets.

@evolve2k
Created December 8, 2011 11:24
Show Gist options
  • Save evolve2k/1446759 to your computer and use it in GitHub Desktop.
Save evolve2k/1446759 to your computer and use it in GitHub Desktop.
Sideways Text Styling Example
<!DOCTYPE html>
<html>
<head>
<title>Sideways Example</title>
<link href='stylesheets/global.css' media='all' rel='stylesheet' />
</head>
<body>
<h2 class="rotate">Look Ma Im sideways</h2>
</body>
</html>
.rotate {
/* Found via google, http://css-tricks.com/snippets/css/text-rotation */
/* Save this file in a folder called 'stylesheets' below where the .html file is otherwise update the file location in the html 'link' tag */
/* Safari */
-webkit-transform: rotate(-90deg);
/* Firefox */
-moz-transform: rotate(-90deg);
/* IE */
-ms-transform: rotate(-90deg);
/* Opera */
-o-transform: rotate(-90deg);
/* Internet Explorer */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment