Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Profile card component

@VijayalakshmiGanesh

Desktop design screenshot for the Profile card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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

Azhar 600

@azhar1038

Posted

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 helpful

1

@VijayalakshmiGanesh

Posted

Hi @azhar1038, Appreciate the time you spent helping me with this information. Thank you !

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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