Home» Forum» Site Feedback» Background

I've noticed that using

background-size: cover;

background-attachment: fixed;

On desktop, it actually fixes it in place and remains still while scrolling, which is what I want, but on mobile it stretches it from the top to all the way to the actual bottom of the content. It makes everything just a blur of colors. Is something overridden here in regards to device width?

@media (max-width: 768px), (pointer: coarse) and (max-width: 1024px) {
  body.profile-page.layout-bodybg {
    isolation: isolate;
    background-image: none !important;
  }

  body.profile-page.layout-bodybg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("https://img.magnific.com/premium-photo/dark-blue-futuristic-background-wallpaper-backgrounds-light-architecture_53876-1103411.jpg?semt=ais_hybrid&w=740&q=80") center / cover no-repeat;
  }
}

add this too your css (: 


Why thank ya. 😎

You must be logged in to reply.