ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

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

  • 2 პასუხი
  • 2 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 5 ნახვა
  • ბოლოს გამოეხმაურა cor-el

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.

გადაწყვეტა შერჩეულია

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!

პასუხის ნახვა სრულად 👍 1

ყველა პასუხი (2)

შერჩეული გადაწყვეტა

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!

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.