Rotate Anchoring text to parent element top - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:a

Description

Rotate Anchoring text to parent element top

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
div {<!--from  w w w  .  j  a  v a2 s . c  o m-->
   height:301px;
   background:red;
   position:relative;
}

h2 {
   color:Chartreuse;
   margin:0;
   font-size:3.6em;
   -webkit-transform:rotate(-91deg);
   -webkit-transform-origin:top right;
   position:absolute;
   left:2.6em;
   top:0;
}
</style> 
 </head> 
 <body> 
  <div> 
   <h2>hello, world</h2> 
  </div>  
 </body>
</html>

Related Tutorials