Created
March 10, 2014 20:25
-
-
Save jawinn/9473554 to your computer and use it in GitHub Desktop.
Quick and simple PHP percentage bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="percentbar" style="width:<?php echo round(100 * $scale); ?>px;"> | |
<div style="width:<?php echo round($percent * $scale); ?>px;"></div> | |
</div> | |
Percentage: <?php echo $percent; ?>% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment