treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Pixel Calculation Difference between FireFox and Chrome!

  • i cant understand why pixel definition in firefox and chrome is not same! you know its annoying! i just wrote a simple padding right and top but i got two different result in FF and chrome! why? how can i have same result in FF and chrome? i used firefox 18.0.1 and chrome 24.0.1312.56(the latest till now).

  • ok with using JS you can recognize what kind of web browser you are using. but any more simple ways?

  • It's probably not pixels, it's more likely to be sub-pixels.

    How different are the pages and, more importantly, does it really matter?

    Most people aren't using more than one browser so they are unlikely to know about it and, even if they did, are they likely to care?

    Unless it's breaking the page....leave it alone.

  • thanks @Paulie_D, good idea :)