October 2016
Beginner to intermediate
709 pages
16h 52m
English
CSS3 provides an easy way to rotate your text. The transform:rotate property is easy to implement and provides a simple solution when the project does not require the complexity of the canvas.
Write a line of text in your HTML document. Brace yourself; you are about to rotate it with CSS3.
Wrap the text in a paragraph tag element:
<p class="rotate">I think, therefore I am</p>
Then, add the CSS transform property to rotate the text. Each browser renders this differently, so each will need its own unique transform property. However, each will use the transform property's subproperty rotate, followed by the degrees of rotation, as shown in the following code snippet:
<!DOCTYPE HTML> <html> <head> ...
Read now
Unlock full access