Skip to content Skip to sidebar Skip to footer

How To Put A Label Side By A Progress Bar With Bootstrap?

I want these labels setted up like this: Java ---------Progress bar----------- C# ---------Progress bar----------- This is my current code:

Solution 1:

Simple add progress-label class to your paragraph tag with float and margin

.progress-label {
  float: left;
  margin-right: 1em;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
  <p class="progress-label">
    C#
  </p>
  <div class="progress" id="prog1">
    <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
      <span class="sr-only">20% Complete</span>
    </div>
  </div>
</div>

Post a Comment for "How To Put A Label Side By A Progress Bar With Bootstrap?"