@correlucas
Posted
Hello Wesley, congratulations for your solution!
Answering your question:
About the background-image import you've used the best way, its possible also to the same using a pseudo-element with position absolute/relative or with the property "content" inside the class, but its a really long work and you'll have to position each element and also work z-index to put the element under everything. So you have done the best choice.
For the background to keep your code clean, you can use a shorthand to write less code and reach the same properties. For background you can write color, image, repeat and position in only one property. See the example below:
Background shorthand:
body { background: #color url("your-img.png") no-repeat right 10% top 10%; }
I hope it helps you and congrats, I know how hard is work with this background multiple image position.
Marked as helpful
@wesleyjacoby
Posted
@correlucas Hi Lucas,
Thanks so much for the feedback - It's great to know I'm on the right track with the background images.
Thanks for the tip regarding the shorthand - It's definitely cleaner! I'll refactor the code to reflect your solution.
Thanks again!
@correlucas
Posted
@wesleyjacoby You're welcome Wesley. By the way you did great positioning the background-images. I was lazy so exported the background with the two circles incorporated from Figma and set them as the background. Only few weeks them I discover how to apply a multiple images background and its kinda hard.
If you want to see my solution here it its: https://www.frontendmentor.io/solutions/fresh-prince-card-component-vanilla-css-easter-eggs-6Qe2CAE0H8
Happy coding!
@wesleyjacoby
Posted
@correlucas Thanks man - I appreciate that. I still have to learn about figma. Once I upgrade to the pro subscription, I'll see what that's all about.
Your solution looks awesome! You went above and beyond what was required - Haha. I still have so much to learn.