MIPS64 Posted November 15, 2012 Share Posted November 15, 2012 (edited) I have noticed that in Firefox the font size is 1 pixel larger than what is displayed in IE and Chrome. Normally I would not care but the font size difference is pushing an element down by 1px. I have tried doing a CSS reset. I just think its the way Firefox renders it that makes it that way. I am guessing there is no way to fix this problem? Edited November 15, 2012 by MIPS64 Quote Link to comment https://forums.phpfreaks.com/topic/270740-font-size-difference-in-ie-vs-firefox/ Share on other sites More sharing options...
MDCode Posted November 16, 2012 Share Posted November 16, 2012 You can use javascript to determine the browser name, then adjust accordingly if it is. As far as I know, there is no detection for firefox browser in css. Quote Link to comment https://forums.phpfreaks.com/topic/270740-font-size-difference-in-ie-vs-firefox/#findComment-1392938 Share on other sites More sharing options...
Beeeeney Posted November 16, 2012 Share Posted November 16, 2012 <script> if (BrowserDetect.browser == 'Firefox' ) { //Load your stylesheet } </script> Quote Link to comment https://forums.phpfreaks.com/topic/270740-font-size-difference-in-ie-vs-firefox/#findComment-1393013 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.