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 Challenge using Flexbox

@rizwanmustafa

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 fixed the background svg position problem using flexbox and simple code lines. I don't think the solution to this problem can be as simple as this but if you have better code, you are welcome. If you see any mistakes I did or any improvements I can make, I will be happy to see your feedback.

Community feedback

Mehmet 285

@memsbdm

Posted

You can use background in css for svg. It would be easier :)

2

@rizwanmustafa

Posted

But then calculating the position of the svgs would be difficult, I guess. But it was easier for me this way. I will try it out though.

0
T
ApplePieGiraffe 30,545

@ApplePieGiraffe

Posted

Hi there, Rizwan Mustafa! 👋

Nice job on this challenge! 👏

Like memsbdm mentioned, using CSS background images would be a nice idea to add the background images to the site. You can use viewport units to position the background images and that will make it easier since then the background images will stay in their place when the page is resized. 😉

Keep coding (and happy coding, too)! 😁

1

@rizwanmustafa

Posted

@ApplePieGiraffe I actually saw your solution and a bit of your code before performing this. But those svgs rotate around when the page is resized and I did not want that.

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