Design comparison
Community feedback
- @RabicaTahirPosted over 1 year ago
Hi π David Oluremi. Congratulations on completing the challenge !
I have some suggestions about your code.
HTMLβ‘:
βͺ It is advisable that you place all your main site content in a landmark element <main>.
βͺ Best practice is to ensure that the beginning of a page's main content starts with a
h1 element
.CSS π¨:
βͺ Instead of using pixels in font-size, using relative units like
em or rem
is a good practice.I hope you find it useful! By the way, the solution was great. ππ―
Enjoy coding, Stay Safe!π€
Marked as helpful1@VectorGitsPosted over 1 year ago@RabicaTahir Thanks for the review on it, when you said the landmark element should be <main> did you mean -main |-index.html |-styles.css
1@RabicaTahirPosted over 1 year ago@VectorGits put index.html code in the mian tag for removing error.
0 - @frank-itachiPosted over 1 year ago
Hello there π. You did a good job!
I have some suggestions about your code that might interest you.
CSS π¨:
- You can use grid or flexbox to center the content no matter the viewport size. Using Grid:
body { min-height: 100vh; display: grid; place-content : center; }
FlexBox
body { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
I hope you find it useful! π Above all, the solution you submitted is great!
Happy
<coding />
π!1
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