Profile Card Component

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?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MelvinAguilar
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 helpful - It is currently missing to establish the background circles' position, which can be done with the
Join 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