Rotate div to show text in angle - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div

Description

Rotate div to show text in angle

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsum d</title> 
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> 
  <style>
.text {<!--from  w  w  w .  j  a  v  a 2  s  .com-->
   width:201px;
   height:201px;
   overflow:hidden;
   transform:rotate(-26deg) translateZ(2px);
   font-size:21px;
   position:absolute;
   left:51%;
   top:51%;
   margin-left:-100px;
   margin-top:-100px;
}
</style> 
 </head> 
 <body translate="no"> 
  <div class="text">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet ve 
  </div>  
 </body>
</html>

Related Tutorials