How can I ensure that the text within a span is word-wrapped inside a div?
https://i.sstatic.net/W691d.png
Here is the code snippet:
<div class="col-xs-6 choice btn btn-default" >
<span class="pull-left">(Kepala) Bagian Purchasing (not listed in SK? originally under WR2) [Purchasing]</span> <!-- this portion needs to be wrapped -->
<span class="pull-right">
<span class="label label-primary" title="total">1</span>
</span>
</div>
I am looking for a CSS rule that will allow long text within the div.choice
to be wrapped.