Compare the text shadow - HTML CSS CSS Property

HTML CSS examples for CSS Property:text-shadow

Description

Compare the text shadow

Demo Code

ResultView the demo in separate window

<html>
   <head>
      <style>
         h1 {<!-- w  w  w.  j a va 2s .c o  m-->
            text-shadow: 2px 2px;
         }
         h2 {
            text-shadow: 2px 2px red;
         }
         h3 {
            text-shadow: 2px 2px 5px red;
         }
         h4 {
            color: white;
            text-shadow: 2px 2px 4px #000000;
         }
         h5 {
            text-shadow: 0 0 3px #FF0000;
         }
         h6 {
            text-shadow: 0 0 3px #FF0000, 0 0 5px #0000FF;
         }
         p {
            color: white;
            text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
         }
      </style>
   </head>
   <body>
      <h1>book 2s .com</h1>
      <h2>book 2s .com</h2>
      <h3>book 2s .com</h3>
      <h4>book 2s .com</h4>
      <h5>book 2s .com</h5>
      <h6>book 2s .com</h6>
      <p>book 2s .com</p>
   </body>
</html>

Related Tutorials