Design comparison
Solution retrospective
Got some difficulties to align properly the white box to the border: div { display: block; margin-left: auto; margin-right: auto; margin-top: 15%; } I did that way but it might not be the most efficiant.
Community feedback
- @FluffyKasPosted over 2 years ago
Hey there,
First of all, congrats on uploading your first solution!
Apart from the things @Alucard2169 said already, I'd just suggest reducing the transition time on the image. ^^ 0.2-0.3s would work a lot better for such a short animation, longer transitions than this can look a bit "laggy".
Marked as helpful0@NazemrapPosted over 2 years ago@FluffyKas Correction applied, it's way smoother like that. Thanks ;)
0 - @Alucard2169Posted over 2 years ago
hi @Nazemrap great work.
For centering the card property with the body
you can put your card in a container and then use
display: flex
on the body, remember to set a height on your body of 100vh and then usejustify-content
andalign-items
property.Flexbox and grid are very important to make responsive designs. and they also make the work a lot easier.
here this video gives a great understanding of flexbox
Marked as helpful0
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