Design comparison
Solution retrospective
Very cool project, I had a lot of fun making it!
Can anyone help me with the positioning of the background elements? Is my solution oprimized? Is the code to be improved ?
Thanks a lot for the feedback.
Community feedback
- @correlucasPosted over 2 years ago
Hello Greg, congratulations for you new solution!
Answering your question:
You can add these two circles as a background, adding it to the body with two keys properties,
background-image
andbackground-position
, note that the comma inside each properties declare the single modification for each circle separated.Copy and paste this code to have the images circle positioned and them play with the values to have the circles where you think is a better place:
body { background-color: hsl(185deg, 75%, 39%); background-image: url(./images/bg-pattern-top.svg), url(./images/bg-pattern-bottom.svg); background-repeat: no-repeat, no-repeat; background-position: top -500px left -400px, bottom -700px right -250px; font-family: 'Kumbh Sans', sans-serif; }
Hope this helps, happy coding!
Marked as helpful1@WorkableryPosted over 2 years ago@correlucas Hi Lucas ! Thank you very much for your advice ! I will implement this directly !
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