CSS Transform: Rotate

By Xah Lee. Date: . Last updated: .

something in the water

here's the HTML code:

<div class="t17362">something in the water</div>

here's the CSS:

div.t17362 {
border:solid thin red;
width: 30ex;

as of 2013-03-27, this works in Firefox, Opera, all on Linux.

for Google Chrome and Safari, you might add this:

-webkit-transform: rotate(-5deg);



Like it? Help me by telling your friends. Or, Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.