/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
HTML: <div class="box-outer"> <div class="box-inner"> text </div> </div> CSS: .box-inner { position:relative; top:-3px; left:-3px; height:150px; background:#aa0000; } .box-outer { width:150px; height:150px; background:#333; }
URL: http://htmlcsstutorials.blogspot.com/2009/06/how-to-give-shadow-to-div-using-css.html