Page Widget How to - Create Book Index Page layout








Question

We would like to know how to create Book Index Page layout.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.center {<!-- w  w  w .  j a  v a  2 s .  com-->
  display: block;
  border-bottom: 1px dotted blue;
  overflow: auto;
  position: relative;
  top: -4px;
}

.right {
  float: right;
  margin-left: 10px;
}

.left {
  float: left;
  margin-right: 10px;
}

.container {
  width: 200px;
  border: 1px dotted red;
  padding: 5px;
}
</style>
</head>
<body>
  <div class="container">
    <span class="left">Title</span> 
    <span class="right">value</span> 
    <span class="center">&nbsp;</span>
  </div>
</body>
</html>

The code above is rendered as follows: