CSS - Rotating an image or text – transform


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /* for firefox, safari, chrome, and any other gecko/webkit browser */
  2. -webkit-transform: rotate(-90deg);
  3. -moz-transform: rotate(-90deg);
  4.  
  5. /* for ie */
  6. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  7.  
  8. /* opera */
  9. -o-transform: rotate(30deg);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.