Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Progressbar Text</title>
  <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" type="text/css" />
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
  <style type="text/css">
    body { background: black; }
    .ui-progressbar { position:relative; width: 350px; }
    .pblabel { position: absolute; display: block; width: 100%; text-align: center; line-height: 1.9em; }
    .ui-progressbar-value{ overflow: hidden; }
    .ui-progressbar-value .pblabel { position: relative; font-weight: normal; color:red; }
  </style>
</head>
<body>
  <div id="progressbar">
    <span class="pblabel">37%</span>
  </div>
  <button>10%</button>
  <button>35%</button>
  <button>40%</button>
  <button>48%</button>
  <button>49%</button>
  <button>50%</button>
  <button>75%</button>
  <button>100%</button>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers