Profile Card Component using mobile-first workflow
Design comparison
Solution retrospective
I'm not quite sure about the method I used to place the background circles. It's not exactly "responsive" because it only looks perfect for widths of 1440px and 375px. Is there a better way to use the background-position style? Or should I ditch using two background images and use a new approach all together? Does having two background images through CSS affect loading speeds?
Community feedback
- @correlucasPosted about 2 years ago
๐พHello @Beans-InJeans, Congratulations on completing this challenge!
A better way to place the the two svg circles as background(top/bottom) using
background-image
, the best way is by usingbackground-image
to manage it since adding them to thebody
you make sure it will be under everything, to manage multiple images inside a single css property asbackground-image
you will use the comma inside each properties declare the single modification for each circle separated. See the code below to see your solution with those backgrounds applied: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; }
โ๏ธ I hope this helps you and happy coding!
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