Adding shading and mask to a picture
<html>
<head>
<style type="text/css">
body {
background-color: #fff;
}
div.imgholder {
float: left;
background: url(./css-book/dropshadow.gif) no-repeat bottom right;
margin: 0 7px 7px 0;
}
div.imgholder div {
background: url(shadowmask.png) no-repeat;
padding: 0 6px 6px 0;
}
div.imgholder img {
display: block;
position: relative;
background-color: #fff;
border: 1px solid #666;
padding: 2px;
}
</style>
</head>
<body>
<div class="imgholder">
<div>
<img src="http://java2s.com/style/logo.png" alt="Photo of Dad, Sara, Nick" />
</div>
</div>
</body>
</html>
Related examples in the same category