Prevent mobile browser from zooming in an 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 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.

The zoom mechanism varies from browser to browser and is not standardized or scriptable. Any solution will be very complicated to work across browsers. There is no easy way to do it Up to this point.

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.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4256 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.