/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <Style> ul.box { margin: 0; padding: 0; } ul.box li { list-style-type: none; margin: 0 30px 30px 0; padding: 0; width: 250px; height: 150px; border: 1px solid #efefef; position: relative; float: left; background: #ffffff; /* old browsers */ background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* firefox */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* webkit */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* ie */ -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3); } ul.box li:after { z-index: -1; position: absolute; background: transparent; width: 70%; height: 55%; content: ''; right: 10px; bottom: 10px; -webkit-transform: skew(15deg) rotate(5deg); -webkit-box-shadow: 8px 12px 10px rgba(0, 0, 0, 0.3); -moz-transform: skew(15deg) rotate(5deg); -moz-box-shadow: 8px 12px 10px rgba(0, 0, 0, 0.3); } ul.box li:before { z-index: -2; position: absolute; background: transparent; width: 70%; height: 55%; content: ''; left: 10px; bottom: 10px; -webkit-transform: skew(-15deg) rotate(-5deg); -webkit-box-shadow: -8px 12px 10px rgba(0, 0, 0, 0.3); -moz-transform: skew(-15deg) rotate(-5deg); -moz-box-shadow: -8px 12px 10px rgba(0, 0, 0, 0.3); } </Style> <body><!-- source: http://matthamm.com/box-shadow-curl.html --> <ul class="box"> </ul> </body> </html>