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

@Gurnav224

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 found diffculty when adding background top and bottom img to the card

Community feedback

@yannmarc

Posted

  • Your solution Semantically right in my opinion as far as HTML is concerned.
  • Accessibility is well respected in my opinion, but for your images you can use `
<picture> <source media="(min-width:your-breakpoints)" srcset="your image"> <img src="your image" alt="image alt" style="width:auto;"> </picture>` to ensure the good responsiveness of your images - Check your layouts at breakpoints = 320px, and add some padding or 1rem to make it portable. - For the background image issues, use the property `backgroud-size: contain`. This applicable to svg images (background) and for jpg's use `background-size: cover`

Marked as helpful

1

@Gurnav224

Posted

@yannmarc thanks for your suggestion

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