The background image has a 1px border in Firefox (and only Firefox!)

A little puzzled by this - I am working on a tiny static site with a large background image, which is a 1px black top border rendering in Firefox. There is no border in the image, and it does not appear in any other browser. I was not able to find links to this with a background image anywhere and I'm not quite sure how to fix this!

Screenshot of the offending border.

+5
source share
2 answers

This seems to be fixed in the latest build of Firefox (not sure if this should be posted as an answer to my own question or as part of a question?)

0
source

You need to make sure that you have a reset for all css, for example normalize.css. Thus, all browsers act the same.

img {border: 0; }

-3
source

Source: https://habr.com/ru/post/1210373/


All Articles