Design comparison
Community feedback
- @Emoji123-sPosted 8 months ago
Hi @l-white, very well done with the project! It looks amazing. I noticed a "P" at the top right corner of your image, so I'm guessing you're a pro member, meaning you have access to figma files and such. Previewing the website, the entire container element spans to the right, and I know we are not dealing with responsiveness at the moment so I wouldn't talk about that. The positioning issue could be fixed with any one of these 3 ways
-
Absolute Positioning: position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
-
Flexbox: flex-direction: column; align-items: center; justify-content: center;
-
Margin: margin-left: auto; margin-right: auto;
With this, your container element should be aligned properly. Amazing work you've done here, and I can't wait to see you try more :)
0@DanijelAdrinekPosted 8 months ago@Emoji123-s that wouldnt help because the card is already in the middle of the body, the issue is that the margins on the body were not removed, causing the body to shift a little, to perfectly center the card, the only property necessary would be:
body { margin: 0; }
0 -
Please log in to post a comment
Log in with GitHubJoin 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