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

Byron 2,180

@byronbyron

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


Feast your eyes on this magnificent profile card component, ladies and gentlemen! Don't forget to like, share and subscribe haha

Community feedback

Byron 2,180

@byronbyron

Posted

Yeah sure!

The first two values -320px -290px means 'Starting from the top left, position the first background image 320px to the left and 290px upwards.', essentially positioning the circle off canvas in the top left corner.

Then it's pretty much the same but in reverse for the second background image, bottom -240px right -300px is 'From the bottom, position the background image down by 240px and from the right position it 300px to the right', pushing the second background image off canvas in the bottom right corner.

You can play around with some examples on the MDN Web Docs site to get a better feel for how it works

Hope that helps!

1
Hala 200

@halamh

Posted

It definitely helps! I'll try it out, thank you so much!

0
Hala 200

@halamh

Posted

Hello! Great job for this challenge! Can you please explain this part of your code:

background-position:-320px -290px,bottom -240px right -300px

I understand there were 2 background images in the background but I don't know what each value represents.

Thanks!

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