Hi everyone,
I have managed to make my background appear the way I want it on desktop but on mobile it sits a bit to right.
I was wondering how I can center it on mobile?
My website is www.tropixsm.co.uk
Password: 11223344
Thanks in advance
Main issue: Background image aligned correctly on desktop but shifted right on mobile; user asked how to center it on mobile.
Key solution (mobile): Add a CSS media query targeting screens up to 767px width and set background-position to center (e.g., “center center” with !important) on the body. This ensures the background image is centered specifically on mobile.
Technical notes:
Implementation:
Follow-up issue: The fix didn’t apply to the password page.
Resolution for password page: Add a similar mobile media query targeting the password page container (selector .password-page__wrapper) and set its background-position to center.
Outcome: The pages were fixed, and a specific rule for the password page provides full coverage; the thread appears resolved.
Hi everyone,
I have managed to make my background appear the way I want it on desktop but on mobile it sits a bit to right.
I was wondering how I can center it on mobile?
My website is www.tropixsm.co.uk
Password: 11223344
Thanks in advance
Add this CSS to end of your timber.css file or use this app to add Custom CSS.
body {
background-position: center;
}
Hi @MarkTropism .
This is PageFly - Advanced Page Builder.
You can go to Online store => themes => actions => edit code and add this code on file theme.css
@media screen and (max-width: 767px){
body {
background-position: center center !important;
}
}
Hope this answer helps.
Best Regards,
PageFly
Worked like a charm! Exactly what I’ve been trying to do for ages!
Love you guys!
Hey @PageFly-Victor This worked perfect for all my pages but hasn’t applied to my password page. Is there an additional step for applying it to the password page?
Add this CSS for password page,
@media screen and (max-width: 767px){
.password-page__wrapper {
background-position: center;
}
}