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

NaQuβ€’ 570

@NaQu2003

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


Better way to postion those circles? I used here background image but i'm not sure if i did it right :/

Community feedback

Christianβ€’ 970

@FLCHRIS

Posted

Hi there ✌️

Congrats on completing this challenge!! πŸ₯³πŸŽ‰

Solving your question... I have always said that there is more than one solution to a problem πŸ˜„, Your way of solving it, it was great.

I leave you another way of how I could have done it... πŸ™ƒ

body {
  position: relative;
  overflow: hidden;
}
body::before {
  content: "";
  position: absolute;
  top: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  background-image: url("../images/bg-pattern-top.svg");
  background-size: cover;
  z-index: 5;
}
body::after {
  content: "";
  position: absolute;
  bottom: -300px;
  right: -300px;
  width: 600px;
  height: 600px;
  background-image: url("../images/bg-pattern-bottom.svg");
  background-size: cover;
  z-index: 5;
}

As you can see, using the position property and pseudo-elements is another way to do it.

I hope I've helped you πŸ˜„

Happy coding!! ✌️

Marked as helpful

1

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