Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Updated this answer with recent information (from <a href="http://css-tricks.com/snippets/css/text-rotation/" rel="noreferrer">CSS Tricks</a>). Kudos to Matt and Douglas for pointing out the filter implementation.</p> <pre><code>.rotate { -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); -o-transform: rotate(-90deg); transform: rotate(-90deg); /* also accepts left, right, top, bottom coordinates; not required, but a good idea for styling */ -webkit-transform-origin: 50% 50%; -moz-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; -o-transform-origin: 50% 50%; transform-origin: 50% 50%; /* Should be unset in IE9+ I think. */ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); } </code></pre> <p><strong>Old answer:</strong></p> <p>For FF 3.5 or Safari/Webkit 3.1, check out: <a href="https://developer.mozilla.org/en/CSS/-moz-transform" rel="noreferrer">-moz-transform</a> (and -webkit-transform). IE has a <a href="http://msdn.microsoft.com/en-us/library/ms533014%28VS.85%29.aspx" rel="noreferrer">Matrix filter</a>(v5.5+), but I'm not certain how to use it. Opera has no transformation capabilities yet.</p> <pre><code>.rot-neg-90 { /* rotate -90 deg, not sure if a negative number is supported so I used 270 */ -moz-transform: rotate(270deg); -moz-transform-origin: 50% 50%; -webkit-transform: rotate(270deg); -webkit-transform-origin: 50% 50%; /* IE support too convoluted for the time I've got on my hands... */ } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload