Design comparison
SolutionDesign
Solution retrospective
I have applied the negative margin to help overlap elements in css
Community feedback
- @correlucasPosted about 2 years ago
πΎ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 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