Create white text with black shadow using CSS

CSSWeb DevelopmentFront End Technology

Use the text-shadow property to create white text with black shadow.

You can try to run the following code to implement the text-shadow property:

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         h1 {
            color: white;
            text-shadow: 3px 3px 3px #000000;
         }
      </style>
   </head>
   <body>
      <h1>Heading One</h1>
      <p>Above heading has a text shadow effect.<p>
   </body>
</html>
raja
Published on 17-May-2018 14:32:51
Advertisements