Design comparison
Solution retrospective
While trying to host on GitHub, and also while trying to centre a div to the middle of the page vertically.
Community feedback
- @correlucasPosted about 2 years ago
πΎHi Agu Jonas, congratulations for your first solution!π Welcome to the Frontend Mentor Coding Community!
Great solution and great start! By what I saw youβre on the right track. Iβve few suggestions to you that you can consider to add to your code:
1.Use
<main>
instead of<div>
to wrap the card container. This way you show that this is the main block of content and also replace the div with a semantic tag.2.Replace the
<h3>
containing the main title with<h1>
note that this title is the main heading for this page and every page needs one h1 to show which is the most important heading. Use the sequence h1 h2 h3 h4 h5 to show the hierarchy of your titles in level of importance, never jump a level.3.Use units as
rem
orem
instead ofpx
to improve your performance by resizing fonts between different screens and devices. These units are better to make your website more accessible. REM does not just apply to font size, but to all sizes as well.4.Use a CSS reset to avoid all the problems you can have with the default CSS setup, removing all margins, making the images easier to work, see the article below where you can copy and paste this css code cheatsheet: https://piccalil.li/blog/a-modern-css-reset/
βοΈ I hope this helps you and happy coding!
0 - @samuelms21Posted about 2 years ago
Hey there, nice work with your project. There is a tiny improvement that you can do, you can add external fonts to your HTML document from Google Fonts. Here's how:
- Open Google Fonts and search for Outfit (the font-family attached in style-guide.md
- You can select the required font weights, and import it to your CSS
- Copy and paste this code to the top of your CSS document:
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');
- And then, since all elements will use the same font-family, you can type this code in your CSS:
* { font-family: 'Outfit', sans-serif; }
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