I have a div with fixed background-image in it. Somehow this works on Firefox and IE 11 but on chrome the div doesn't show up.
Her the example in jsfiddle: jsfiddle
The question might be similar to that one here:
but what they tried to achive is a litte bit different: They have the background-image on the whole section and put the content over that. so none of the solutions worked for me. Beside that the Demo in codepen there, doesn't even work in Firefox?
There are 2 soutions that come in my mind:
- use the hack that was mentioned:
@media screen and (-webkit-min-device-pixel-ratio:0) {
.bg{
background-attachment: scroll;
}
}
by that the image will be displayed in chrome but not fixed, so you will not have the same effect as in Firefox and IE.
to try something completely different by reordering the divs
this one seems to be some fancy stuff which i have never tried before and don't even know if this is going to work. maybe it will bring more problems as solutions??
Any idea how to fix this? Am I missing something?