Not Found
Not Found
Not Found
Your session has expired please log in again.
Your session has expired please log in again.
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 using flexbox

Akanni Feyisaraโ€ข 110

@Feyisara2306

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 two questions:

  1. How can I add that little circular space between the profile image and the card pattern? I tried using border around the image but didn't work

  2. How can I cut the two circular background images?

Feedbacks are appreciated!

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

๐Ÿ‘พHello Akani, congratulations for your solution!

Answering your question:

1.The circle around the image is a border, you just apply to the profile img border: 4px solid white;. In this case is better you use border-radius: 50%; instead of clip-path to create the rounded image and apply the border, see the code bellow:

.profile_image {
    border: 4px solid white;
    border-radius: 50%;
    /* clip-path: circle(50%); */
    margin-top: -2.5em;
}

2.To position the background-image is better you manage it directly to the body css instead of using it from the html. See the properties you should use to position these two circles individually:

body {
    background-image: url(/images/bg-pattern-top.svg), url(/images/bg-pattern-bottom.svg);
    background-repeat: no-repeat;
    background-position: -50px -300px, 950px 500px;
    background-size: cover;
}

Hope it helps, happy coding!

Marked as helpful

1

Akanni Feyisaraโ€ข 110

@Feyisara2306

Posted

@correlucas This is very helpful, thanks a bunch!!!

1

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