Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

em is relative to its font size

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

  <div style='height: 50%'>Test 2</div>
</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #em #relative #font #size
ADD COMMENT
Topic
Name
3+4 =