Page Widget How to - Draw 3D shape with border








Question

We would like to know how to draw 3D shape with border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!--from w ww. j ava2  s  .  c o m-->
  background: #fff7bf;
  width: 50px;
  height: 50px;
  border: solid;
  border-width: 90px 20px 60px 120px;
  border-color: #000 #ccc #000 #ccc;
}
</style>
</head>
<body>
  <div></div>
</body>
</html>

The code above is rendered as follows: