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

HTML CSS solution

Petra 10

@PetraU11

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


This is my first so-called project therefore be kind. Could you please check the positioning and the margin/borders/padding etc.? I still feel a way lost :)

Community feedback

Antoine 220

@Antoine-Flo

Posted

Hi Petra 👋 Great job it looks nice 😀 As Yellow-May said, you have to center this card, which isn't easy.

You have few solutions for that :

  • display the container as grid or flexbox, then center the content with justify-content and align-items.
  • apply margin : 0 auto; on your element (but you know that)
  • use absolute positioning then => left: 50%; (with transform: translateX(-50%))

All of this techniques has quirks and conditions and you'll have to learn by experimenting 👍 happy coding !

0

@Yellow-May

Posted

For a first time project, it looks decent Just need better use of positioning to get your card to the centre of the screen preferably using flex-box.

Other than that, Nice work.

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