Im writing CSS:
.block1 {line-height:1.2rem}
.block2 {height:1.2rem}
Calculated sizes in browser: block1 height = 19px and block2 height = 19.2px
Where does the difference come from? How i can get same size using rem?
Im writing CSS:
.block1 {line-height:1.2rem}
.block2 {height:1.2rem}
Calculated sizes in browser: block1 height = 19px and block2 height = 19.2px
Where does the difference come from? How i can get same size using rem?
I think the problem is rounding. When Chrome calculating line-height, it becomes 19. And the real value is 19.2.