Box-shadow in color : use blue and green color to magnify each shadow.
Syntax:
· -webkit-box-shadow: 1px 1px 3px green, -1px -1px blue;
· -moz-box-shadow: 1px 1px 3px green,-1px -1px blue;
· box-shadow: 1px 1px 3px green, -1px -1px blue;
Example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> box-shadow in color </title>
<style type="text/css">
#box
{
width:300px;
height:100px;
background-color: #fff;
-moz-box-shadow: 3px 3px 3px green, -2px -3px blue; /* Firefox 3.6 and earlier */
box-shadow: 3px 3px 3px green, -2px -3px blue;
}
</style>
</head>
<body>
<div id="box"></div>
</body>
</html>
Result:
No comments:
Post a Comment