Monday, 12 September 2011

Box Shadow

Before CSS3, we had to either use a shadow image or JavaScript to apply a shadow or we used to create the shadow directly in the image. With CSS3 Box Shadow we can apply shadows to almost every element of our website. Here is the example:
    #exp3 {
    background: #FFF;
    border: 1px solid #000;

    -moz-box-shadow: 5px #999; /* For Mozilla: */
      -webkit-box-shadow: 5px #999;  /* For WebKit: */

No comments:

Post a Comment