Different font height on iphone using font

To vertically center my text in a drawer, I use the same line height as the window height. It works great on iphone for system fonts. But when I use @ font-face, I have to declare at least 3 pixels per line height for iphone, otherwise the text will no longer be vertically centered (this is up or 3 pixels).

Does anyone know why?

+5
source share
2 answers

You tried to add in CSS:

myel {
  -webkit-text-size-adjust: none;
}
+4
source

SOLVE:

, OS 3.1.3 3G-, 4.2.

, 4.2 , Mobile Safari.

+1

All Articles