Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

website beancarclub.org.uk loads OK on Safari but 2 of the pages have overlapping text /photos on firefox

  • 2 réponses
  • 2 ont ce problème
  • 5 vues
  • Dernière réponse par cor-el

more options

We have tried altering the offending pages and keeping text and pictures in separate boxes but they just come out with overlaps in different places. Site appears fine, then when published the faults appear.

We have tried altering the offending pages and keeping text and pictures in separate boxes but they just come out with overlaps in different places. Site appears fine, then when published the faults appear.

Solution choisie

Hi,

I can see this occurring on http://beancarclub.org.uk/Short-Bean-Car-History/ . I believe what's happening here is that Chrome and Firefox are calculating the line height of the paragraphs differently. The space between the lines is set to be 16.9px; Firefox rounds that up to 17px, while Chrome rounds it down to 16px. This causes the paragraphs to be shorter in Chrome, meaning that they don't overlap with the images below.

There are several things you could do to fix this, although if you're using some kind of software to generate the site I'm not sure how many of these are possible:

  1. Change the images so that they always appear after the paragraph, rather than a certain distance from the top of the page (which is what they are doing right now).
  2. Pick an integer (either 16.0 or 17.0px) for the line-height, so that the paragraphs are the same height in both browsers.

Hope that helps!

Lire cette réponse dans son contexte 👍 1

Toutes les réponses (2)

more options

Solution choisie

Hi,

I can see this occurring on http://beancarclub.org.uk/Short-Bean-Car-History/ . I believe what's happening here is that Chrome and Firefox are calculating the line height of the paragraphs differently. The space between the lines is set to be 16.9px; Firefox rounds that up to 17px, while Chrome rounds it down to 16px. This causes the paragraphs to be shorter in Chrome, meaning that they don't overlap with the images below.

There are several things you could do to fix this, although if you're using some kind of software to generate the site I'm not sure how many of these are possible:

  1. Change the images so that they always appear after the paragraph, rather than a certain distance from the top of the page (which is what they are doing right now).
  2. Pick an integer (either 16.0 or 17.0px) for the line-height, so that the paragraphs are the same height in both browsers.

Hope that helps!

more options

I need to switch to zoom text only and slightly zoom out (95%) to make the text appear properly. You need to avoid specifying the top and left position for each element exactly when text is involved since you can't predict what font a visitor or browser is using. All DIV containers are in some random order: the Bean text is #wb_element_instance46 and the image under it is #wb_element_instance30. It is always best to let the browser calculate the height of text containers.