We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Enlarging or de- a screen with CTRL- and CTRL+ breaks a div in a iframe in a container more or less ad random. Have those keys other meanings?

  • 3 tontu
  • 1 am na jafe-jafe bii
  • 1 view
  • i mujjee tontu mooy cor-el

more options

In IE, Chrome and Torch pages can be enlarged/decreased at will by using "CTRL-" and "CTRL+". Not so in Firefox. It breaks a line a line with photos at random. The most right photo shifts to the left underneath, as if the div gets smaller. But, a second or a third or a nth CTRL-/+ repairs the situation. You could see for yourself on www.vakantiehuiszonneweelde.nl The site exist of a 'container margin:auto' with header and navigation and a content div. The problems occur within the contents div. In only one page I use a (kind of lightbox) lib Magicthumb. Could this lib be the troublemaker?

In IE, Chrome and Torch pages can be enlarged/decreased at will by using "CTRL-" and "CTRL+". Not so in Firefox. It breaks a line a line with photos at random. The most right photo shifts to the left underneath, as if the div gets smaller. But, a second or a third or a nth CTRL-/+ repairs the situation. You could see for yourself on www.vakantiehuiszonneweelde.nl The site exist of a 'container margin:auto' with header and navigation and a content div. The problems occur within the contents div. In only one page I use a (kind of lightbox) lib Magicthumb. Could this lib be the troublemaker?

Saafara biñ tànn

A good place to ask advice about web development is at the mozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

Jàng tontu lii ci fi mu bokk 👍 0

All Replies (3)

more options

This can happen if there are rounding errors that causes content not to fit with specific zoom factors.
Making the iframe 1px wider (256px instead of 255px) fixes this.

more options

Thanks for the solution. It works. The lesson is to make a div always one pixel smaller than its parent (iframe, div, box). In my former post I mentioned that only Firefox was shifting elements. Very sorry for that, giving only my outer frame a pixel extra made it o.k. for Firefox but now other browters started to shift. For your info: my knowledge about HTML and CSS comes from W3scools where I have never met the above practice.

more options

Saafara yiñ Tànn

A good place to ask advice about web development is at the mozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.