This is a mobile version of the website I’m developing. I have a fixed menu bar that runs the width of the entire website and always stays at the top of the page to provide navigation. I have optimized the button/text size to work with touch screens, if the user zooms the page content text, I really Don’t want it to be affected.
The only thing I encountered was the following CSS, but when I tried it, this didn’t seem to work:
-webkit-text-size-adjust: none;
I don’t want to disable the resize of the entire page through the Viewport meta tag, I only want to locate the menu bar html element.
I want to know if anyone knows a way you can prevent the browser from zooming in on certain page elements.
This is the website I’m developing The mobile version of. I have a fixed menu bar that runs the width of the entire website and always stays at the top of the page to provide navigation. I have optimized the button/text size to work with touch screens, if the user zooms the page content text , I really don’t want it to be affected.
The only thing I encountered was the following CSS, but when I tried it, it didn’t seem to work:
-webkit-text- size-adjust: none;
I don’t want to disable the size adjustment of the entire page through the Viewport meta tag, I only want to locate the menu bar html element.
The zoom mechanism varies from browser to browser, is not standardized, nor is it scriptable. Any solution will be very complicated to work across browsers. There is no easy way to do this.