Akaev Dzhalal
Akaev Dzhalal

Reputation: 129

Text size changes on iPhones

Good day. I have such a question, I wrote an adaptive for the site, everything was fine. But when I launched the site on an iPhone, my main headings got smaller. Although in chrome on pc, font size is normal at all sizes. Below I am attaching screenshots.

Body styles have:

-webkit-text-size-adjust: none;

Tried 100% instead of "none". The result is the same

In chrome

enter image description here

In iPhone

enter image description here

Upvotes: 1

Views: 33

Answers (1)

OldWizard007
OldWizard007

Reputation: 370

Try using @media queries. If the screen width goes below 450, change the font size:

@media screen and (max-width: 450) {
  h1{
    font-size: <x>%;
  }
}
 

Upvotes: 2

Related Questions