-1

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?

TylerH
  • 20,799
  • 66
  • 75
  • 101
400kg
  • 1
  • 1

1 Answers1

0

I think the problem is rounding. When Chrome calculating line-height, it becomes 19. And the real value is 19.2.

400kg
  • 1
  • 1