I’m trying to improve the responsiveness of several background images, but can’t seem to get it right.
On mobile view, some of the images need to be positioned left, and some right. However, it seems I’m only able to do one or the other.
@media only screen and (max-width: 768px) {
.x-bg-layer-lower-image {
background-attachment: scroll;
background-position:left;
}
}
This code works for changing the positioning of ALL of the background images, but I’m wanting to do it only on specific sections. I’ve tried adding a custom class to the section and adding it to the media query, but no luck.
.x-bg-layer-lower-image .classname{
background-attachment: scroll;
background-position:left;
}
}