CSS box-shadow Properties

CSS Box Shadow

CSS box-shadow Property

The CSS box-shadow property applies shadow to elements. In its simplest use, you only specify the horizontal shadow and the vertical shadow:

  •       
                        <!DOCTYPE html>	 
    <html>
    <head>
        <title>CSS Gradient</title>
    <style>
    div{
        
      width: 300px;
      height: 100px;
      padding: 15px;
      margin-bottom:20px;
    }
    .box{
        background-color: darkblue;
        box-shadow: 10px 10px grey; /* box shadow length and height*/
    }
    .box1 {
      background-color: darkblue;
      box-shadow: 10px 10px 5px grey; /* box shadow length, height and blur*/
    }
    
    .box2 {
    
      background-color: darkblue;
      box-shadow: 10px 10px 5px 12px grey; /* box shadow length, height, 
      blur and width of blur*/
    }
    
    
    </style>
    </head>
    <body>
        <div class="box"></div>
        <div class="box1"></div>
        <div class="box2"></div>
    </body>
                        

    Dess App

    DessApp is an Integrated E-learning Education, Interactive and User-friendly features, smarter options and redefining your school costs effectively and efficiently.

    View
    1 1