@vanzasetia
Posted
Hi, Stacey! 👋
Positioning those circles is indeed a tricky thing to do. But, it is possible to do it. So, I recommend making those circles as background images of the body
element instead. Then, you can use viewport units or even clamp()
function to position them dynamically according to the user's screen size. I recommend taking a look at the ApplePieGiraffe's solution for this challenge as an inspiration.
For the bg-pattern-card.svg
, I made it as an img
element. It's because if I set it as a background image, I have to do a lot more work like specifying the height of it, setting the background repetition, etc. Also, since it is a decorative image, I left the alt=""
empty so that screenreader users won't have to listen to the decorative elements.
I hope this answer your questions!
Marked as helpful