HTML Element Style How to - Add shadow to a div


We would like to know how to add shadow to a div.


<!DOCTYPE html>
<style type='text/css'>
#main {<!--from w w w.j  ava  2  s .c o m-->
  height: 100px;
  width: 200px;

.shadow {
  box-shadow: 1px 1px 1px 1px #888888;
  <div id='main' class="shadow"></div>

The code above is rendered as follows: