Monday, August 15, 2011

Shadow

How to create a shadow around the border of rectangle with width 964px. It's quite simple and quick.
1. Insert div-tag into HTML-page.
<div class="shadow"> </div>
Put HTML code inside of the div
2. Insert a couple rows in css.
.shadow {
width: 964px;
margin: 0 auto;
-moz-box-shadow: 0 0 10px 1px #888;
-webkit-box-shadow: 0 0 10px 1px #888;
box-shadow: 0 0 10px 1px #888;
background-color: white;
}
Please view Microsoft documentation on the topic

No comments:

Post a Comment