Design comparison
SolutionDesign
Community feedback
- @ecemgoPosted over 1 year ago
Some recommendations regarding the CSS that could be of interest to you.
CSS
- If you want to center it correctly, you can add
min-height
to thebody
:
body{ min-height: 100vh; }
- after adding
min-height
, you need to removemargin-top
from the.card
(by the way, you used two background-color, I've removed the other) and it's the updated version of.card
below:
.card { width: 320px; height: 496px; border-radius: 15px; display: flex; flex-direction: column; justify-content: space-around; align-items: center; background-color: #ffffff; box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1); }
- and finally, you can add position and bottom to
.attribution
so that it stays at the bottom:
.attribution { position: fixed; bottom: 0; }
Hope I am helpful. :)
0@devFerreirPosted over 1 year ago@ecemgo
thanks for you help, i appreciate it ;)
1 - If you want to center it correctly, you can add
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