<html>
<head>
  <title>Div example</title>
</head>
<body>

<style type="text/css"> 
.container {
  position: relative;
  left: 100px;
  height: 50px;
  width: 300px;
}

.graph { 
  position: absolute;
  padding: 2px;
  width: 200px; 
  border: 1px solid #000000; 
     
}
.graph .bar { 
  display: block;
  position: relative;
  background: #00ff00; 
  color: #ff0000;   
  height: 2em; 
  line-height: 2em; 
  text-align: center; 
  font-weight : bold;
}
</style>

<div class="container">
  <div class="graph">
      <div class="bar" style="width: 70%;">70%</div>
  </div>
</div>

</body>
</html>