Created
December 8, 2011 11:24
-
-
Save evolve2k/1446759 to your computer and use it in GitHub Desktop.
Sideways Text Styling Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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