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 - HTML & CSS

@jesubohr

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


I still don't know how to position the circles behind the card component correctly. Some advice in how to approach it would be very useful. Thanks :)

Community feedback

@efecollins

Posted

I've tried doing that using the images as background-image, but It was too hard for me to get the desired design, so I found that it's better to put the images on the HTML and use them inside a div with position: absolute, and then set a parent div with position: relative

my solution to the problem;

parent div { height: 100%; width: 100%; overflow: hidden; position: relative; }

.child-div(1) { position: absolute; top: -425px; left: -350px; }

.child-div(2) { position: absolute; bottom: -550px; right: -300px; }

Hope my explanation helps you! feel free to ask for help anytime :)

Note: Your bg images must be nested in a div each i.e bg - img 1 is in a div and bg - img 2 in another div and these two divs will be nested in a parent div before you set the CSS properties.

1

@jesubohr

Posted

Thanks for the advice. It really helped me. 🙌😁

1

@efecollins

Posted

@Lordex18

Don't forget to update your solution.

0
Caradec 0

@Rcaradec

Posted

Hey Jesus, You can try the position:absolute (+ z-index) for each circle and then a combination of height/witdth and margins. There must be a lot of other possibilities but it worked for me :-)

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