Add text-shadow to text - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Add text-shadow to text

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">
h1 {<!--from   w  w w .  j  a  v a  2 s .c  om-->
   color:Chartreuse;
   font-size:81px;
   display:inline;
}

.c1
 {
   position:absolute;
   top:-47px;
   left:9px;
   text-shadow:0px 2px 30px yellow;
   color:blue;
   z-index:-2;
}
</style> 
 </head> 
 <body> 
  <h1>?</h1> 
  <h1 class="c1">?</h1>  
 </body>
</html>

Related Tutorials