Page Widget How to - Create line seperator with bottom border








Question

We would like to know how to create line seperator with bottom border.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.divOutside {<!--from   www.  j  a v  a2s .c o  m-->
  border-bottom: 2px blue solid;
  width: 200px;
  padding-bottom: 5px;
  padding-top: 5px;
}

.divInside {
  width: 200px;
  height: 80px;
  color: #fff;
  background-color: blue;
}

.last {
  border-bottom: 0;
}
</style>
</head>
<body>
  <div id="Content1" class="divOutside">
    <div class="divInside">
      <strong>Content1</strong>
    </div>
  </div>
  <div id="Content2" class="divOutside">
    <div class="divInside">
      <strong>Content2</strong>
    </div>
  </div>
  <div id="Content3" class="divOutside last">
    <div class="divInside">
      <strong>Content3</strong>
    </div>
  </div>
</body>
</html>

The code above is rendered as follows: