My problem is when i use a stacked progress bar and the sections are too small the text inside is cut of.
Using the min-with breaks the progress bar.
Is there a way to solve the problem?
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped" style="width:1%;">
<span style="color:black">Long long text</span>
</div>
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped" style="width:99%;">
<span style="color:black">Long long text</span>
</div>
</div>
2
Answers
I would suggest have a look at this css3 text-overflow property
CSS3 text-overflow Property
might come handy
I have a little Jquery workaround for you:
Jquery
HTML
Get the Text with Jquery, save it temporally in another div and get the Text-width. At the end you can give every progress-bar the min-width.