Page Widget How to - Scrolly panel with footer








Question

We would like to know how to scrolly panel with footer.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.parent {<!-- ww w  .j a va2  s  .c  om-->
  width: 170px;
  height: 340px;
  border: 1px solid #000;
  position: relative
}

.normal {
  overflow: auto;
  height: 300px;
}

.abs {
  height: 40px;
  position: relative;
  bottom: 0px;
  background-color: rgba(123, 123, 123, 0.4);
}
</style>
</head>
<body>
  <div class="parent">
    <div class="normal">
      a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />a<br />bottom
    </div>
    <div class="abs"></div>
  </div>
</body>
</html>

The code above is rendered as follows: