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

@Abhishek10351

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


What specific areas of your project would you like help with?

I would like help on the two background svgs and how to add them in the desing as intended.

Community feedback

M 920

@Dev-MV6

Posted

Hi there 👋

Getting the background right can be the most difficult part in this challenge, here's one way you can achieve a very close result to the original design, with the help of the background-position property and CSS media queries to make it responsive:

/* Mobile first */
body {
  background-position: left -330px top -300px, right -428px bottom -326px;
  background-size: 540px, 640px;
}

@media (min-width: 700px) {
  /* Medium size screens */
  body {
    background-position: left -585px top -510px, right -530px bottom -633px;
    background-size: 978px;
  }
}

@media (min-width: 1300px) {
  /* Large size screens */
  body {
    background-position: left -285px top -510px, right -230px bottom -633px;
  }
}

Hope you find this 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