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

Responsive profile card component

Andres Guevaraβ€’ 30

@Andresssg

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


This is my second challenge. I tried my best. What do u consider I could do better? Give me some tips to keep improving. Have a nice day :)

Community feedback

Lucas πŸ‘Ύβ€’ 104,560

@correlucas

Posted

πŸ‘ΎHello ANDRES GUEVARA, congratulations for your new solution!

I saw that you've used position: absolute to make the image stay between the two divs. Its kinda tricky to manage the profile image using position: absolute because you'll have less control over the image. margin-top: -50px;

My tip for you is to use a negative margin to change the photo position, is really easier, you write less code and have more control.

See the code changes below:

.card-main-info__img {
    /* position: absolute; */
    /* top: -32%; */
    border: 5px solid white;
    border-radius: 50%;
    margin-top: -50px;
}

πŸ‘‹ I hope this helps you and happy coding!

Marked as helpful

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