Page Widget How to - Create Divider with Border








Question

We would like to know how to create Divider with Border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.divider-inside-bottom {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #ddd;
}<!-- ww  w . j a  v a2 s .c  om-->

.divider-inside-bottom:before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 96%;
  bottom: -10px;
  height: 10px;
  left: 2%;
  border-radius: 100px/5px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}
</style>
</head>
<body>
  <div class="example divider-inside-bottom">
    <p>Box Shadow Bottom Only</p>
  </div>
</body>
</html>

The code above is rendered as follows: