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 Using FLexbox

@codebyfauzan

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


How to centering the profile image when it becomes a position: absolute? Also how to masking bg-pattern-card to the parent div, because I need to give it border-radius too just to make parent div has a smooth border

Community feedback

@GoldenAceTech

Posted

Good effort Fauzan. However I think you should try using bg-pattern-top, bg-pattern-bottom and bg-pattern-card as backgrounds instead of images. There are different background properties like background: url();, background-attachment, background-size and background-position that can be useful for those and make them more responsive. Also for the profile image you can use negative margin-top to displace it from its normal position to the top without having to worry about moving away from the center. However, if you must use position:absolute; try making the parent container *position:relative; * so it doesn't displace too far away from it's parent element and you can easily place it where you want. Check out my solution here to see how I made it responsive. I also made a github repositiory for it, let me know if you have any questions I will be glad to clearify and you can give me a feedback on my solution too. Keep Coding! you got this.

3

@codebyfauzan

Posted

@GoldenAceTech Thanks for your feedback, really appreciate that. I will try to check your solution and maybe give feedback on that.

0
P
ApplePieGiraffe 30,545

@ApplePieGiraffe

Posted

Hello there, Fauzan Reza! 👋

Congratulations on completing your first Frontend Mentor challenge! 🎉 Nice work on this one! 🙌

I just suggest following GoldenAceTech's helpful suggestions to improve the positioning of the background images, and you should be good to go! 👍

Keep coding (and happy coding, too)! 😁

0

@codebyfauzan

Posted

@ApplePieGiraffe Thanks, I will try to improve my code.

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