Add shadow to elements with CSS

CSSWeb DevelopmentFront End Technology

Use the CSS box-shadow property to add shadow to elements using CSS. You can try to run the following code to implement box-shadow property:

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         h2 {
            box-shadow: 10px 10px;
            height: 50px;
            background-color: yellow;
         }
      </style>
   </head>
   <body>
      <h2>Heading Two</h2>
      <p>Above heading has shadow.<p>
   </body>
</html>
raja
Published on 16-May-2018 15:40:09
Advertisements