I have the following HTML
<div class="container">
<div class="row">
<div class="col-sm-8">
<div class="my-text" style="background-color:yellow;padding:10px;">
<h3>Column 1</h3>
<p>Line 1 --- Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<p>Line 2 --- enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p>
<p>Line 3 --- enim ad minim veniam, quis nostrud exercitation ullamco laboris...</p>
</div>
</div>
<div class="col-sm-4">
<h3>Column 2</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
</div>
</div>
</div>
Based on what is in the above HTML code, the height (shown in yellow background) of my text area (...) changes depending how much text Column 1 has. You can play with a jsfiddle example here:
http://jsfiddle.net/mddc/2z1t56z8/10/
What I hope to achieve is no matter how much text in Column 1, the height is always the same (a value I can specify) when col-sm-8 reaches its max in desktop (bootstrap term) and the text area can shrink like a responsive image when the browser shrinks.
I tried min-height/width, max-height/width, etc., but failed. I am unable to think of the needed CSS ways to achieve my goal.
Thanks!