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

Hum Brunoβ€’ 230

@humbruno

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


  • Even though it was quite a straightforward design to accomplish, it definitely helped me understand the different ways to position and image on top of other elements.

After trying absolute position, I came to the conclusion that setting a negative margin-top on the image was the approach that required less lines of code, which is something I like to think of for every design.

This approach does have a minor flaw that I couldn't figure out why - if you zoom your browser on the image you'll see that some of the background pattern shines through the profile photo's border - how would you tackle this?

  • One thing that I haven't quite understood yet is that the body background color and card background pattern have different color shades depending on the browser, even though I used an HSL color provided by the challenge.

For example, on Google Chrome it has a very teal-ish accent, whereas in Firefox it's leaning towards a light-blue - do you think this is a normal occurence or an oversight in my code?

Community feedback

Account Deleted

Hi there πŸ‘‹

Congratulate on finishing your project πŸŽ‰. You did a great job πŸ”¨

I give some suggestions that I hope help you take your project design to the next level πŸ“ˆ.

  • Let's add some box-shadow to the card πŸ›’. You can use this code to fix it box-shadow: 0 12px 24px rgb(0 0 0 / 10%)

Happy coding β˜•

Maqsud

Marked as helpful

0
Naveen Gumasteβ€’ 10,460

@NaveenGumaste

Posted

Hay ! Hum Good Job on challenge

-> when I saw your preview I did not see any difference in the bg-color ,i reviewed your design in -Chrome -Brave -Firefox, so don't worry about it

Have a good day and keep coding πŸ‘!

Marked as helpful

0
Ascaris29β€’ 80

@Ascaris29

Posted

I really like your work, I used it to correct myself

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