M
M
Marina2015-05-12 23:29:24
css
Marina, 2015-05-12 23:29:24

How to deal with firefox limiting block width to screen width?

Good evening!
Can you please tell me what Firefox has to do with my block width?
I want, and I prescribe: width: 2500px. It would seem, what difference does it make if part of the block is hidden? (overflow:hidden for the parent window block).
But Firefox imposes a limit on any size larger than screen.width (in my case 1600px), and whatever width is specified above 1600px, it always turns it into 1600.
How to deal with malicious tyranny?
___________________________
UPD: Firefox actually gives the width by hand. But it does not allow JavaScript to increase the width of the block beyond 1600px. (Say, as many pictures as you like are added to the inner block of the slider. Accordingly, the width of the block is increased by the pre-calculated width of the picture and the width of the indent between the pictures). So at some point in firefox, pictures begin to be displayed at the bottom of the "second line".
At the same time: if you scale the page to a smaller size and update it, everything is displayed normally (because the browser screen width is no longer 1600, but 2-something thousand).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marina, 2015-05-13
@shalfei111

If anyone is interested, I found the reason: it was not necessary to call the innerWidth variable :) the fool himself, as they say.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question