I have a problem with this page. I developed it in Firefox on it's default zoom level. The idiot that I am, I haven't tested it on Chrome. So, now I see that the page's layout and/or font size is different on Chrome and other Webkit based browsers. Default Chrome zoom level is 75% so everything is smaller on Chrome. I have to say that I've made a dozen of web apps but have concentrated on the backend side of the application and never put many thoughts in how the page looks like on different browsers.
I mean, I have if javascript cross browser stuff had to be addressed but this is something that I never came across.
What I think is wrong with this is font size. I have a #main-wrap
that wraps the entire app and has a base font size of 16px
. So, #navigation a
has 0.7em
because that way it looks normal in Firefox, but looks really small in Chrome.
Could anyone post some tips or hints as to way this is happening?
EDIT:
I've fixed the problem with
zoom: 1.29;
-moz-transform: scale(1);
-moz-transform-origin: 0 0;
And it works but, as I know, it's a good to do this like this. Is there a CSS technique do make pages look the same across browsers?
You can set the default zoom level for all sites by scaling the magnification up or down from 100% as needed. You can also specify whether to enlarge only text or all page contents. Various Firefox extensions have offered this functionality for readability purposes, but it's now a native feature.
By default, Chrome sets the zoom level to 100%.
I've had this issue as well. Using the @viewport tag works well. Here are the articles that I used to resolve the issues:
There are a lot of similar questions with suggestions. Here's one that helped me:
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