Design comparison
Solution retrospective
Any suggest? Why my code doesn't like the design? Hm...... is margin-top or what? thank yu.
Community feedback
- @dwhensonPosted over 3 years ago
Hi @herbras nice work on this one looks good to me! š
As for your question, couple of issues might be impacting this 1) your body isn't filling the viewport completely, try setting
min-height: 100vh;
on the body, 2) if you combine this with settingdisplay:grid; place-items:center;
on the body I think you will be sorted - your design will still be higher because of your footer - I would remove it to see the effect and then assess whether to add it back. I addmin-height: 100vh;
to all my projects in a CSS reset.Otherwise some small suggestions for improvements are:
-
Try to only use one
h1
per page is common advice as it helps with page structure. Your headings in the bottom blocks would probably be better ash2
s this helps make the page more accessible. -
I would suggest adding some hover styles to the button and `cursor: pointer' so that it is easier for users to see that the element is clickable - at the minute it's not that obvious, this is a common patter for most buttons.
In case you are interested, this is the reset I use in all my projects. I've found it to be very useful: https://piccalil.li/blog/a-modern-css-reset
But otherwise this is a great job! š Keep up the good work! Cheers š
2 -
- @herbrasPosted over 3 years ago
wow. I think this will be very helpful. Thank you so much
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