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

My Profile Card Component Solution

alexandriaβ€’ 35

@ironheart93

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


Hi, this is my code for the Profile Card Component!

I really struggled with the background svg and understanding how to manipulate them!

Please let me know if you have any suggestions or wanna offer help!

Community feedback

JrMnicolasβ€’ 10

@JrMnicolas

Posted

Hi Alexandria,

Good Work! Try using background-image and background-position next time.

here's some code to help with that

background-image: url(../images/bg-pattern-top.svg), url(../images/bg-pattern-bottom.svg); background-repeat: no-repeat; background-position: bottom -55% right 49vw, top -90% left 42vw;

This should do the trick.

Overall good work !

0
Nebiyou Ersaboβ€’ 185

@NebiyouErsabo

Posted

Hey there, For the background svgs the code below will do just fine.

  • background-image: url(images/bg-pattern-top.svg),url(images/bg-pattern-bottom.svg);
  • background-repeat: no-repeat;
  • background-position: right 48vw bottom 40vh, left 42vw top 50vh;

Try it out and lmk πŸ‘

0
Anurag Singhβ€’ 1,265

@exist08

Posted

Just use the ::before and ::after and position them.

0

alexandriaβ€’ 35

@ironheart93

Posted

@exist08 Will look into it, thank you!

0
Vanza Setiaβ€’ 27,855

@vanzasetia

Posted

πŸ‘‹Hi Alexandria! My name is Vanza!

πŸ‘ Nice work on completing this challenge! I agree with you that, the positioning of this background is hard and also tricky. When I did this challenge, I went to GitHub and searched for the right background-position, then copy and paste it😌.

I see your CSS on background-position that you commented out, my question is why are you doing that? I think that's a good way to position it.

That's it! Happy coding!

0

alexandriaβ€’ 35

@ironheart93

Posted

@vanzasetia Oh hi, thank you. I commented it out because it was someone else's solution I saw on Github.

I wanted to understand it before implementing it but I may just implement it!

Thanks again.

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