irvy
irvy

Reputation: 23

Firefox and Chrome window width/height showing differently

My laptop display resolution is 1280 x 800. When I query $(window).width() I get 1420 on Firefox while I get 1280 on Chrome. Why is Firefox showing me a window width greater than my screen resolution?

Upvotes: 1

Views: 3660

Answers (1)

Nabil Kadimi
Nabil Kadimi

Reputation: 10384

Because your Firefox window is probably zoomed out.

Reset the zoom using one of the following:

  • CTRL+0 (or CTRL+SHIFT+0 in some keyboard layouts)
  • View (or ALT+V) > Zoom > Reset

Upvotes: 6

Related Questions