Skip to content

Instantly share code, notes, and snippets.

@jalexanderfox
Created February 5, 2014 19:15
Show Gist options
  • Select an option

  • Save jalexanderfox/8830992 to your computer and use it in GitHub Desktop.

Select an option

Save jalexanderfox/8830992 to your computer and use it in GitHub Desktop.
rotated heading
/**
* rotated heading
*/
div {
writing-mode:tb-rl;
transform: rotate(-90deg);
transform-origin: top left;
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
white-space:nowrap;
display:block;
bottom:0;
position: absolute;
outline: solid 2px green;
width:auto;
height:20px;
font-family:inherit;
color:#000;
}
h2 {
margin-top: -5px;
background: pink;
}
<!-- content to be placed inside <body>…</body> -->
<div><h2>some longer text here bla bla you can add</h2></div>
{"view":"split-vertical","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment