Design comparison
Solution retrospective
I learned how to deal with multiple background image and also positioning them. But position isn't working with all screen size. Also I wanted to know if there is any best way to center a div. I use the following css to center a div div{ height: 22rem; width: 21rem; left: 0; right: 0; top: 0; bottom: 0; position: absolute; margin: auto; } Not sure if this is a good practice.
Community feedback
- @azhar1038Posted about 2 years ago
Hi Vijayalakshmi, congratulations on completing the challenge!
For this challenge, positioning those two circles is the most difficult part. You almost got it correct but try positioning those relative to the card itself instead of body.
For centering the card, you can try using flex or grid instead of using absolute positioning. You may check this article How to Center Anything in CSS Using Flexbox and Grid
Hope it helps :)
Marked as helpful1@VijayalakshmiGaneshPosted about 2 years agoHi @azhar1038, Appreciate the time you spent helping me with this information. Thank you !
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