]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update progress.md to reflect setting height on .progress
authorDave <davethegr8@users.noreply.github.com>
Fri, 26 May 2017 17:52:15 +0000 (10:52 -0700)
committerMark Otto <markd.otto@gmail.com>
Fri, 11 Aug 2017 05:50:59 +0000 (22:50 -0700)
docs/4.0/components/progress.md

index 4cbc333aaf5441a060d26354d42f573697517191..07217d939b27fcfec40fd6197eef719598a9aed6 100644 (file)
@@ -55,14 +55,14 @@ Add labels to your progress bars by placing text within the `.progress-bar`.
 
 ## Height
 
-We only set a `height` value on the `.progress-bar`, so if you change that value the outer `.progress` will automatically resize accordingly.
+We only set a `height` value on the `.progress`, so if you change that value the inner `.progress-bar` will automatically resize accordingly.
 
 {% example html %}
-<div class="progress">
-  <div class="progress-bar" role="progressbar" style="width: 25%; height: 1px;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
+<div class="progress" style="height: 1px;">
+  <div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
 </div>
-<div class="progress">
-  <div class="progress-bar" role="progressbar" style="width: 25%; height: 20px;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
+<div class="progress" style="height: 20px;">
+  <div class="progress-bar" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
 </div>
 {% endexample %}