Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > Adobe Dreamweaver

  • Print
  • + Share This
Like this article? We recommend Rotating


The rotate transform effect in CSS3 is very similar to the skew effect, except that instead of distorting the shape of the selected content, the entire content rotates (see Figure 5).

Figure 5 Applying rotation to text and an image.

You can replicate the steps from the preceding section to define an ID Div style that rotates content; just replace skew with rotate. Your resulting CSS code will look like this in your CSS style sheet:

#rotate {
background-color: #FF0;
margin: 10px;
padding: 10px;
border: thin solid #00F;

You can adapt and customize this code by editing the background color, border, padding, size, and so on in the CSS Styles panel, and you can adjust the rotation angle in the CSS code.

  • + Share This
  • 🔖 Save To Your Account