I want to be able to put some inline element right next to a Bootstrap 3
progress bar like following:
Some inline element [progress bar]
Some inline element [progress bar]
Some inline element [progress bar]
I've tried the following with no luck:
display: inline
- bar not showingfloat: right
- bar not showing<td>
Here's the bootply with my attemps: http://www.bootply.com/9jNcnGRkUK
You can apply the Grid system as following:
<div class="container">
<div class="row">
<h3>inline</h3>
<span class="col-sm-3">Some inline element</span>
<div class="progress" class="col-sm-9">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
<span class="sr-only">45% Complete</span>
</div>
</div>
</div>
</div>
Try it your self. Note that the col-sm-*
class should be put within the row
class.
Why inline
? I've tried inline-block
with a specified width
and it works fine: http://www.bootply.com/LsNz4F87Np
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With