Not Found
Not Found
Not Found
Not Found
Your session has expired please log in again.
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

@danielmrz-dev

Desktop design screenshot for the Profile card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison

SolutionDesign

Daniel Moraes Mariz’s questions for the community

One more project. I couldn't get the background position correctly. I think it was supposed to have two backgrounds, one on top of the other, but I tried completing the challenge with only one.

Please if you have any tips on how to get it right, feel free to leave me a comment :)

Community feedback

Bryan Li 2,800

@Zy8712

Posted

Your project looks pretty good. Currently the way you have your background set up, the single image you selected is being repeated multiple times.

If you want to use both circles and position them you can do something along the lines of:

  background-color: var(--theme-dark-cyan);
  background-image: url("./images/bg-pattern-top.svg"), url("./images/bg-pattern-bottom.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: right 52vw bottom 35vh, left 48vw top 52vh;
  /* top img is offset 52 percent of the vw from the right and offset 35 of the vh from the bottom*/
  /* bottom img is offset 48 percent of the vw from the left and offset 52 of the vh from the top*/

Hope you find this useful 👍

Marked as helpful

1

@danielmrz-dev

Posted

@Zy8712

Thank you! I'm gonna try that!

0

@danielmrz-dev

Posted

Hey, @Zy8712 !

Thank you very much for your help. I didn't know it's possible to use 2 images and set their position separately.

That was very helpful! Thanks, mate!

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