My site's homepage has a banner image implemented with this CSS. Using a media query, the background image is set to scroll on smaller screens:
#banner {
background: url("../images/banner1.jpg") no-repeat fixed left 13em / 100% auto rgba(0, 0, 0, 0);
height: 47em;
overflow: hidden;
width: 100%;
}
/* Mobile */
@media screen and (max-width: 767px) {
#banner {
height: 27em;
background-attachment: scroll;
background-position: left 7em;
}
}
I want to make this an inline image, so it can be easily updated via my CMS. The designer says it has to be a CSS background image for the background-attachment property to be applied.
I suspect the CSS position property could be used on an inline image to get the same effect? Or is this a situation where the image has to be a CSS background instead of inline?