I am trying to adjust the vertical position of a background image in a container that is centered:
<div class="foo"></div>
.foo {
background: white url(../image.jpg) no-repeat scroll center center / cover;
}
Is it possible to move the background image vertically by a fixed value (such as 10px) from its original position using CSS or JavaScript? I would like to achieve something like this:
background-position: center (center - 10px);