Looking for a CSS-only solution to manage text within an image-defined box? The challenge is to place a button in the center if the text is shorter than the image, or cut it with ellipsis if longer. Also, the text should not exceed the box width. Any ideas on how to achieve this effect using CSS only? Check out the demo here: http://jsfiddle.net/h3emzbcq/3/
<div class="border-box">
<div class="item-pic">
<img src="http://demo7.firstvoicemedia.com/u5.png" alt="" class="img-responsive">
<div class="item-btn">
<button class="btn btn-green"><span class="btn-text">Text place Text place Text placeText place Text place Text place</span></button>
</div>
</div>
Text place
Appreciate any solutions you can offer. Thanks!