We would like to know how to create dark CSS3 Shadows.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.corners {<!-- w ww .j a va2 s . co m-->
position: relative;
background: #666;
width: 400px;
height: 200px;
text-align: center;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #444;
}
.shadows {
-webkit-box-shadow: 5px 5px 8px #666;
-moz-box-shadow: 5px 5px 8px #666;
box-shadow: 5px 5px 8px #666;
}
.corners p {
font: italic 52px Georgia;
color: #eee;
vertical-align: middle;
height: 50px;
top: 70px;
text-shadow: -2px -2px 0 #000;
}
</style>
</head>
<body>
<div class="corners shadows">
<p>java2s.com</p>
</div>
</body>
</html>
The code above is rendered as follows: