Tagged: x
-
AuthorPosts
-
April 7, 2016 at 8:43 am #871165
Hello,
I’ve noticed that on an iPhone 5/5s/SE, my website doesn’t quite resize properly to the device’s viewport (320×568) and as a result all text is cropped by default (see attached screenshots).
FYI I have the following line in my index.php:
<html><head><meta name=”viewport” content=”width=device-width, initial-scale=1.0″><title>R3Z</title></head><frameset rows=”100%”, *” border=”0″ frameborder=”0″><frame src=”<?=$URL?>”></frameset></html>
What am I doing wrong? Could you please help?
Thanks,
Reza ElghaziApril 7, 2016 at 9:00 pm #872173Hi there,
Thanks for posting in.
It’s because of the frameset. It’s like having a window within a window. Since it’s internal window, it will only respond to its parent window and not to the devices.
Your site is basically embedded to another site. Please remove the iframe and use the actual site.
Thanks!
April 7, 2016 at 9:41 pm #872210Hello,
Thanks for highlighting the source of the issue. I used a frame to mask affiliate URLs, but in fact I figured out a more elegant solution:
<html><head><title>R3Z</title>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″ />
<meta http-equiv=”refresh” content=”0;url=<?=$URL?>” />
</head></html>Cheers,
RezaApril 8, 2016 at 7:47 am #872728Glad to hear you’ve figured it out! 🙂 Have a good day.
-
AuthorPosts