Page Widget How to - Create multiple border








Question

We would like to know how to create multiple border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!--   w w  w.  j a va2 s  . co  m-->
  width: 80px;
  height: 80px;
  border: 10px solid red;
  margin: 40px 0 80px 40px;
  -webkit-box-shadow: 0 0 0 10px yellow, 0 0 0 20px orange, 0 0 0 30px blue;
  -moz-box-shadow: 0 0 0 10px yellow, 0 0 0 20px orange, 0 0 0 30px blue;
  -o-box-shadow: 0 0 0 10px yellow, 0 0 0 20px orange, 0 0 0 30px blue;
  box-shadow: 0 0 0 10px yellow, 0 0 0 20px orange, 0 0 0 30px blue;
}

#dot {
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  border-radius: 50px
}
</style>
</head>
<body>
  <div id="box"></div>
  <div id="dot"></div>
</body>
</html>

The code above is rendered as follows: