height-constraint-percent-7-ref.html (658B)
1 <!DOCTYPE HTML> 2 <style> 3 div { margin-top: 0; font-size: 12px; width: 450px } 4 #center-block { max-height: 400px; } 5 #center-col { background: yellow } 6 p { margin-top: 0px; } 7 8 </style> 9 <!-- 10 Because the max height is constrained, this should not be inflated. 11 --> 12 <div id="center-block"> 13 <div id="center-col"> 14 <p>Life and death, dreaming and wakefulness: stations for the perplexed soul. It traverses them by stage, taking signs and hints from things, groping about in the sea of darkness, clinging stubbornly to a hope that smilingly and mysteriously renews itself. Traveler, what are you searching for? What emotions rage in your heart?</p> 15 </div> 16 </div>