Create two borders in css

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#borders {
  position: relative;
  z-index: 10;
  padding: 30px;
  background: #fff;
  border: 2px solid #390;
}

#borders:before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 2px solid #36F
}
</style>
</head>
<body>
  <div id="borders"></div>
</body>
</html>


Comments

Popular posts from this blog

Shutdown Computer With Funny Reason

Hidden Attribute in javascript

Draw animated loading spinner canvas in Javascript