I have the following caption that works great when viewing a page in full screen

but when I reduce the width of the browser, it spills out of the div.

I used white-space: normal on the panel, but this does not work. text-overflow: ellipsis does nothing either. I am using Bootstrap.
<div class="col-sm-4"> <section class="panel" style="background:#e74c3c; color:#FFF;"> <div class="panel-body"> COMPLAINT<br> 8 </div> </section> </div>
.col-sm-4 { width: 33.33333333333333%; } .panel-body { padding: 15px; } .panel { margin-bottom: 15px; background-color: #ffffff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.05); box-shadow: 0 1px 1px rgba(0,0,0,0.05); }
source share