Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why the font size won't change with browser zoom in?

In most of websites, while I change the zoom level of browsers, the font size will also increase and help user to see them. For some reasons, that just won't work on my new website. While I change the zoom level of the browser, everything changes but all font size keep the same. Is there a css or html property that I can use to control this behavior? Thanks

here is an example: http://ca.skywatcher.com/index.php

like image 624
lucemia Avatar asked Oct 26 '11 19:10

lucemia


People also ask

Does browser Zoom Change font size?

Increase or decrease the font size by clicking the + (plus) or - (minus) in the Zoom section of the menu (near the top). The browser's default zoom setting is 100%.

How do I Zoom and Unzoom my browser?

By default, Chrome sets the zoom level to 100%. To manually adjust the settings, use the Ctrl key and “+” or “-” combos to increase or decrease the page magnification. If you are using a mouse, you can hold down the keyboard Ctrl key and use the mouse wheel to zoom in or out.


1 Answers

The problem is that you have set -webkit-text-size-adjust: none; for the body in layout.css. Changing it to -webkit-text-size-adjust: auto; allows the zooming of the fonts along with the page.

Edit: Corrected the CSS. Should be auto not 0

like image 199
Lycha Avatar answered Sep 18 '22 20:09

Lycha