We would like to know how to add shadow to top border.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!-- ww w . jav a 2s . c o m-->
border: 1px solid #202020;
border-top-width: 5px;
margin-top: 25px;
margin-left: 25px;
width: 158px;
height: 158px;
padding-top: 25px;
-webkit-box-shadow: inset 0px 7px 3px -3px rgba(50, 50, 50, 0.75);
-moz-box-shadow: inset 0px 7px 3px -3px rgba(50, 50, 50, 0.75);
box-shadow: inset 0px 7px 3px -3px rgba(50, 50, 50, 0.75);
}
</style>
</head>
<body>
<div></div>
</body>
</html>
The code above is rendered as follows: