When I set background-attachment: fixed
as a property for a group of floated elements, background-position
doesn't work properly. If I set the value normally to 'left top
', it positions properly only left column of elements. If I set it to 'center
', only the images in cental columns are visible, etc. Only way to set it to behave properly is to add image's offset to background-position-x
, or to increase background-size
, but I don't want that. Any ideas?
Here is my CSS:
.element {
float: left;
margin: 10px;
width: 300px;
height: 300px;
background-position: left top;
background-attachment: fixed;
background-repeat: no-repeat;
background-size: initial;
background-image: url(...);
}