Create cross-browser drop-shadows
November 21, 2010
CSS | Web Building

Here's an example of CSS styles you can use to create nice soft drop shadows around elements on a web page:

<style> 
  #test {  
     -moz-box-shadow: 3px 3px 3px #666; 
      -webkit-box-shadow: 3px 3px 3px #666; 
       box-shadow: 3px 3px 3px #666; 
  } 
  </style>


Here's how it looks, applied to a div:



Ads by Google

Posted by ellen at November 21, 2010 04:50 PM


Ads by Google

 RSS   |   Contact Me

Ads by Google

Ads by Google