Posts

Showing posts with the label bar

php progress bar with percentage

The php progress bar with percentage varies by changing php variable value. <?php $percentage='10%';?> <style> .progress{ border: 1px solid black; position:relative; width:500px; } .bar{ background-color: #00ff00; position:absolute; } .percent{ position:absolute; left:200px; } </style> <div class="progress"> <div class="bar" style="width:<?php echo $percentage;?>">&nbsp;</div> <div class="percent"><?php echo $percentage;?></div> &nbsp; </div>