.i-shadow { position: absolute; } .i-shadow .top-left { position: absolute; overflow: hidden; top: -3px; left: -5px; width: 10px; height: 10px; background: transparent url(img/top-left.png); } .i-shadow .top { position: absolute; overflow: hidden; top: -3px; left: 5px; height: 10px; right: 5px; background: transparent url(img/top.png); } .i-shadow .top-right { position: absolute; overflow: hidden; top: -3px; right: -5px; width: 10px; height: 10px; background: transparent url(img/top-right.png); } .i-shadow .left { position: absolute; overflow: hidden; top: 7px; left: -5px; width: 10px; bottom: 3px; background: transparent url(img/left.png); } .i-shadow .center { position: absolute; overflow: hidden; top: 7px; left: 5px; bottom: 3px; right: 5px; background: transparent url(img/center.png); } .i-shadow .right { position: absolute; overflow: hidden; top: 7px; right: -5px; width: 10px; bottom: 3px; background: transparent url(img/right.png); } .i-shadow .bottom-left { position: absolute; overflow: hidden; bottom: -7px; left: -5px; width: 10px; height: 10px; background: transparent url(img/bottom-left.png); } .i-shadow .bottom { position: absolute; overflow: hidden; bottom: -7px; left: 5px; right: 5px; height: 10px; background: transparent url(img/bottom.png); } .i-shadow .bottom-right { position: absolute; overflow: hidden; bottom: -7px; right: -5px; width: 10px; height: 10px; background: transparent url(img/bottom-right.png); } /* For IE6 (no transparent png's, we use a blur filter) */ .i-ie6 .i-shadow * { display: none; } .i-ie6 .i-shadow { background: #000; filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2) alpha(opacity=20); margin-top: -3px; margin-left: -4px; }