How to set the shadow using Css

18 Mar 2014, 01:52 PM

Set the shadow using box-shadow class property. See the example below.

<style> 

 .box
 {
   width:300px;
   height:100px;
   background-color:blue;
   box-shadow: 5px 5px 10px #313131;
 }

</style>

Create box class and assign it to the div.

 <div class="box"></div>

Related Contents

15 May 2014, 08:07 AM
C#, LINQ, List
15 May 2014, 07:54 AM
C#, LINQ, List
29 Apr 2014, 03:07 AM
C#, Generic
About
Set the style of div using css

Date Posted 18 Mar 2014, 01:40 PM
Author Brainy Solutions
Views 709
;