While working on a website, I encountered an issue where the background image did not display correctly across different browsers. Specifically, when using the background-size: cover
property in Chrome and Safari, the image filled up the entire screen as intended. However, opening the webpage in Firefox revealed that the image appeared too high up with the bottom portion displaying the selected background-color
. This inconsistency led me to wonder why this was happening and how I could address it.
In an attempt to rectify the issue, I experimented with additional properties such as -moz-background-size
and -moz-background-position
, alongside the existing
background-position: right center
property. Unfortunately, these adjustments did not yield the desired results.
Below is the relevant CSS code snippet:
-moz-background-size: cover;
background-size: cover;
-moz-background-position: right center;
background-position: right center;
UPDATE: To see the issue in action, you can visit the website here: crowdsparked.com