I’m new to web-dev and don’t know if this is working as intended, but it seems odd to me. Briefly, disabling touch even simulation causes my webpage to be rendered differently (see attached photos). Is this due to my code, Firefox dev tools, or something else?
Thanks.
Code Here: Codepen

You need to add the following code to the head section (before title tag):
<meta name="viewport" content="width=device-width, initial-scale=1">
From HEAD
meta name="viewport"- viewport settings related to mobile responsivenesswidth=device-widthmeans that it will use the physical width of the device (instead of zooming out) which is good with mobile-friendly pagesinitial-scale=1is the initial zoom, 1 means no zoom
For more info about viewport meta tag see: Viewport meta tag
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With