Design comparison
SolutionDesign
Solution retrospective
Want more idea to positioning 2 background images for any device
Thanks
Community feedback
- @DineshrajAnandanPosted over 3 years ago
Hi, I was working on the same problem for positioning the two background images.
this CSS property has worked for me
background-position: right 50vw top -90vh, left 50vw top 41vh;
Here, I'm using viewport height, viewport width, and position reference. In this case, no media queries are needed.
I hope, it helps you too.
For reference, https://developer.mozilla.org/en-US/docs/Web/CSS/background-position
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord