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 :)
@DanijelAdrinek
Posted
@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; }