hi, I can't for the life of me work out why this text flows out of the container div. i have tried it all! html <div class="col-md-4"> <div class="panel panel-default js-hi"> <div class="panel-heading js-hi" > </div> <div class="panel-collapse"> <div class="panel-body js-hi"> test <div class="input-group col-md-12"> <h4 id="image_detail_title">test</h4> <div id="image_detail_content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,</div> </div> </div> </div> </div> </div> HTML: css .col-md-4{width:50%;height:92%;position: absolute;top:0px;right:0px;cursor:default!important;} .panel-default{background:red;height:97%;margin:15px;} .panel-heading{background:orange;text-align:center;padding-right:15px} .panel-title{font-size:20pt;line-height:-10px} .panel-body{font-size:14pt;overflow-x:hidden;overflow:auto;min-height:100px;height:auto;} Code (markup): thanks!
Heading and Title ID lines do not end with ; is one point. From what I can recreate, as you do not have all the CSS there, it works fine.
Just looks unfinished is all. Also might be that I do a bit of PHP modding and a ; makes a world of difference in having or not, and can be a bitch to see that it is missing, so I always add it in. Still, not having the other CSS I could not recreate fully, but from what I could do it did not overflow.
Agreed that it should be there, it makes debugging a lot easier, I'm just saying that it's not needed. Just as an ending ; isn't needed after ending curly brackets in PHP.
@7643sfsag6 Because you have the height set at 97%. Removing it solves the issue: https://jsfiddle.net/d4h8bpLr/1/
BTW - the code is shit. What in the world uses six (SIX!) nested divs, with ridiculously named classes and other crap? This reeks of being bootstrap or some other BS.