Shadowed underlined text with perspective using rotation - HTML CSS CSS Property

HTML CSS examples for CSS Property:text-shadow

Description

Shadowed underlined text with perspective using rotation

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">
.container {<!--from  w  ww  .j a  v a 2 s .  com-->
   width:201px;
   height:201px;
   border:2px solid Chartreuse;
   margin:0 auto 61px;
   position:relative;
   -webkit-perspective:601px;
   -moz-perspective:601px;
   -o-perspective:601px;
   perspective:601px;
}

.title {
   width:100%;
   height:100%;
   position:absolute;
   background:green;
   font-size:36px;
   line-height:2;
   letter-spacing:0px;
   text-shadow:3px 3px yellow;
   text-decoration:underline;
   text-underline-position:under;
}

#rotate-x .title {
   -webkit-transform:rotateX( 46deg);
   -moz-transform:rotateX( 46deg);
   -o-transform:rotateX( 46deg);
   transform:rotateX( 46deg);
}
</style> 
 </head> 
 <body> 
  <div id="rotate-x" class="container"> 
   <div class="title">
     Lorem ipsu 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials