Design comparison
Solution retrospective
I could not figure out how set the background like in the design image. How can I change my background to match the solution?
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hi @VMH1225 ๐, good job completing this challenge! ๐
I have some suggestions you might consider to improve your code:
- It is currently missing to establish the background circles' position, which can be done with the
background-position
property:
body { . . . background-repeat: no-repeat, no-repeat; background-position: left 48vw top 52vh, right 52vw bottom 35vh; }
background-repeat
Sets if a background image will be repeated along the horizontal and vertical axes, or not repeated at all.background-position
Sets the starting position of a background image. More information- You can also specify the size of the background image with background-size
The
background
property is shorthand for all the properties mentioned above but for now. It is better to understand them separately.The
background-position
for me worked with the vw (viewport width) and vh (viewport height) units, but you can also use percentages. It's just a matter of trial and error to place them as you wish.References:
Above all, the project is done well๐. I hope those tips will help you! ๐
Good job, and happy coding! ๐
Marked as helpful2 - It is currently missing to establish the background circles' position, which can be done with the
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