This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Caută ajutor

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.

Află mai multe

Acest fir de discuție a fost arhivat. Adresează o întrebare nouă dacă ai nevoie de ajutor.

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 răspunsuri
  • 1 are această problemă
  • 1 vizualizare
  • Ultimul răspuns de 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?

Soluție aleasă

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.

Citește acest răspuns în context 👍 0

Toate răspunsurile (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

Soluție aleasă

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.