1

I made this web app which seems to be functioning fine when I check its responsiveness in Chrome's Devtools Responsive modus (see photo 1), but when I open the site on a phone, the words of one of the <h1> elements stack on top of each other when the screen size shrinks (see photo 2 - screenshot taken from my iPhone 8).

The style settings of this element are the following:

h1 {
  font-variant: small-caps;
  font-size: clamp(1rem, 9vw, 4rem);
  padding: 0 1rem;
}

I tested it with different iPhones, both running in Chrome and Safari. The site runs from my GitHub page, does that have anything to do with the malfunctioning? Both my local version as the GitHub version seem fine in my computer browser when I check responsiveness.

Hope someone can enlighten me on this matter!

Here are the photos:

Photo 1: in Chrome DevTools - responsive mode

Photo 1: in Chrome DevTools - responsive mode

Photo 2: the malfunctioning mobile version Photo 2: the malfunctioning mobile version

Here is also a link to the published version on GitHub Pages: go to site

0 Answers0