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 using Mobile-first approach

Macury 40

@Macury

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


Please does anyone know how to set up the background image correctly without affecting responsivity?

Community feedback

Bryan Li 3,550

@Zy8712

Posted

To set up the background images you can do something along the lines of this:

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 feedback useful 👍

Marked as helpful

1

@dselimovic02

Posted

You can check my solution for the answer. Long story short, set the circles as background images for body and position them.

Lice site url: https://dselimovic02.github.io/profile-card/

Cheers!

Marked as helpful

1

Macury 40

@Macury

Posted

Thank you @dselimovic02 Your comment was very helpful

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