<div id='contain' style='height: 400px'> <div style='height: 1.5em'>Test 1</div> <div style='height: 50%'>Test 2</div> </div>

em is relative to its font size

Similar Code Examples