Resolved issue with background image display on Mac Chrome

I'm currently in the process of developing a website that incorporates fixed background images for smooth transitions between sections. The implementation is entirely CSS-based and has been effective in all browsers except for one: Chrome on Mac (Version 33.0.1750.146 or Version 34.0.1847.45 beta). Interestingly, it functions properly on Chrome for PC.

The issue at hand is quite peculiar...while scrolling, the image becomes duplicated, overlaid, and overall distorted. After continued scrolling, it eventually vanishes without reappearing upon scrolling back up.

Any suggestions or solutions for this perplexing problem?

Current page:

Current screenshot (malfunctioning in Chrome):

Current screenshot (working fine in Safari):

Potentially relevant CSS:

.chris, .eric, {
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  z-index: 50;
  width: 100%;
  height: 100%;
}

.chris {
  background-image: url(../img/people/chris.png);
}

.eric {
  background-image: url(../img/people/eric.png);
}

Edit: It appears the issue stems from the fixed background element. Removing "position:fixed" from #behind (CSS not detailed above) resolves the glitch, but does not align with my project requirements. Currently exploring alternative solutions!

Answer №1

I encountered the same problem as well. I noticed that your website is up and running now, could you please provide details on how you resolved it?

UPDATE: By removing the position: relative; property and ensuring that both the html and body elements have a height: 100%; declaration, I was able to fix the issue I was facing.

Answer №2

Resolving an issue by removing a position:fixed element that was not nested fixed the problem, although the reason behind it remains unclear to me. To fully address the issue, I adjusted the body to have a background image set as attachment:fixed that all other elements scrolled over, each with their own attachment:fixed background images. However, I am still curious why the original setup did not work properly only in Chrome on Mac in some browsers while functioning fine elsewhere -__-

Answer №3

Using Chrome 38 Canary on Windows 8.1

Encountering the same issue:

Noticed that many other websites are also experiencing bugs (such as Twitter's fixed background)

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Creating an HTML dynamic table with fixed height to prevent expanding when adding text

I have a dynamic table with fixed width and height. By using a random function, I determine the number of cells (ranging from 3x3 to 7x7) in the table. The table renders correctly, but when clicking on a cell to write a letter, the row expands in height. H ...

Resize the images and align them side by side

I have a container with a maximum width of 1400px. Inside this container, there are two images of different sizes. I want to align them in a row using flexbox so that they fit within the 1400px width and still maintain a visually appealing appearance as sh ...

Using an HTML5 image icon as an input placeholder

Is there a way to incorporate an image icon into an input placeholder and have it disappear when the user starts typing, across all browsers? In trying to achieve this, I successfully implemented a solution for webkit (Safari+Chrome) using ::-webkit-input ...

Grabbing the mouse in Firefox

Are there any alternatives to the .setCapture(); and .releaseCapture() functions in Firefox that do not involve using jQuery? (The client prefers not to use it) ...

How to Choose a Radio Button from a Group using Selenium WebDriver and Java

My goal is to be able to choose a specific radio button from a set of radio buttons grouped by the name attribute: <div> <input type="radio" name="exampleInputRadio" id="optionRadio1" value="1"> <input type="radio" name="exampleInpu ...

CSS Code That Is Ineffective

Having some trouble with creating a hidden background that will still show up but not on the main content page. I'm looking to have a different background for the main content itself, but for some reason it's just not working. The main background ...

Tips for designing a dropdown menu for selecting the number of passengers

Looking for guidance on adding a passenger count dropdown form similar to the one in the image below. I've searched everywhere but can't find a demo or any help. Can someone assist me with this? https://i.sstatic.net/RO1vi.jpg Appreciate any he ...

Experiencing issues on the live server as it appears that Bootstrap is not functioning properly

I am facing an issue with my website where it appears distorted when launched on a live server, despite working fine locally. It seems that the Bootstrap styles are not being applied correctly on the live server and I cannot figure out why. If anyone knows ...

Obtain Vue component reference using the @click event

I've been struggling to find an HTML reference to the component triggering an @click event in Vue. I have a custom component within a list: <ion-list lines="none" v-for="item in uiPosts" :key="item.createdAt"> < ...

Tips for organizing table rows and columns without any overlapping intersections

I need help designing my table so that the intersections do not have crossed borders. Here is the CSS code I am using for my table: table { border-collapse: collapse; } table td, table th { border: 1px solid black; } table tr:first-child th { ...

Varied selection menu feature

Looking to build a new component: The idea is to create something similar to a dropdown list. I aim to incorporate this component into every cell (td) of table rows. The challenge lies in displaying the second div (item list) under the first div, but abov ...

Tips for choosing an option from a list of options using Selenium with Python

Attempting to select an option from a webpage using Selenium-Python has proven challenging. Despite obtaining the xpath and css selector of the element, all attempts to locate it for clicking have failed. Research indicates that the element may be within a ...

Is a Text-Only View Possible with WebView?

Could someone help me figure out how to restrict a WebView to only load text in my WinRT XAML App? I am looking for a simpler solution than having to download the source and manually editing img tags. ...

Difficulty encountered while executing Protractor tests with Selenium Server

Attempting to Execute Protractor/Jasmine/Selenium End-to-End Tests Currently in the process of running end-to-end tests using Protractor with the standalone Selenium server and the chrome driver. Encountering a Selenium server error when attempting to ru ...

Displaying a div upon hovering over another div is resulting in numerous server requests and a flickering effect

I am attempting to create a hover effect where one div floats next to another. The layout of the divs is like a grid, placed side by side. Check out my code on this fiddle. Using plain JavaScript, I want to display a second div (div2) floating next to div ...

The abbreviation for the <select> element is used in iPhone and Android web browsers

I've encountered a dilemma with my HTML <select> dropdowns when viewed in iPhone or Android browsers. The issue arises when I have to display lengthy <option> labels, like this example: [AccountType] [EUR] - [Customer] - CH12 3456 7890 ...

What is the best way to make sure the background image adjusts to fit the browser window as it is resized?

Currently, I am working on creating a small responsive webpage that features a background image with several buttons placed on top of it. To set the background image, I included the following CSS: .background { height: 100vh; width: 100%; backg ...

Tips for inserting multiple numbers from a single row into separate options within a SELECT statement

Is there a way to create a select box with multiple options that are based on one row from my MySQL table? For example, <?php if(!empty($row['size'])) { ?> <label>Size</label> ...

Reverting Changes Made with JQuery Append

I have a table where each cell contains a button. When the button is pressed, it adds text to the cell. I am looking for a way to remove this text from the cell when the same button is pressed again. It's important to note that this button appears mul ...

Issue with the parent element size when containing an image smaller than 100% width

This is the default appearance with all images set to 100% width: image description here These images must maintain their aspect ratio, so I can only use percentages for sizing. When the image width is set to 60%, it looks like this: image description ...