Page Widget How to - Create left/right border








Question

We would like to know how to create left/right border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.left-content-bar {<!--   w  ww .ja v  a  2  s .  c  om-->
  position: fixed;
  width: 10px;
  left: 0;
  top: 0;
  bottom: 0;
  background: #cff;
}

.right-content-bar {
  position: fixed;
  width: 10px;
  top: 0;
  right: 0;
  bottom: 0;
  background: #cff;
}

.inner-content {
  padding: 0 10px;
}
</style>
</head>
<body>
  <div class="content-body">
    <div class="left-content-bar siteborder"></div>
    <div class="inner-content">
      <p>Fugit quae harum erat nisl porta, ex hic, adipiscing cum
        voluptatem varius ac bibendum pariatur? Class! Arcu omnis auctor
        sit. Sollicitudin risus fusce aliquet illo! Deserunt totam
        asperiores exercitationem hac.</p>
    </div>
    <div class="right-content-bar siteborder"></div>
  </div>
</body>
</html>

The code above is rendered as follows: