Design comparison
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
- @GoldenAceTechPosted almost 4 years ago
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@codebyfauzanPosted almost 4 years ago@GoldenAceTech Thanks for your feedback, really appreciate that. I will try to check your solution and maybe give feedback on that.
0 - @ApplePieGiraffePosted almost 4 years ago
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@codebyfauzanPosted almost 4 years ago@ApplePieGiraffe Thanks, I will try to improve my code.
0
Please log in to post a comment
Log in with GitHubJoin 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