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

CSS, HTML

@wasswaenockmale

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 have applied the negative margin to help overlap elements in css

Community feedback

Lucas πŸ‘Ύβ€’ 104,440

@correlucas

Posted

πŸ‘ΎHello Wasswa Enock Male, congratulations for your new solution!

Use this 2 properties to have your image responsive and with a properly scaling without losing its proportions, display: block; max-width: 100%;. Note that the profile photo is distorted.

Here's the fixes I did for your:

img {
    display: block;
    max-width: 100%;
}
.image-victor {
    /* max-width: 100%; */
    border-radius: 50%;
    border: 5px solid white;
    /* width: 22%; */
    /* height: 80px; */
    margin-top: -40px;
}

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

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