Design comparison
SolutionDesign
Community feedback
- @ecemgoPosted almost 2 years ago
Some recommendations regarding your code that could be of interest to you.
HTML
- If you want to use the recommended font-family for this project, you can add the following between the
<head>
tags in HTML file:
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap" rel="stylesheet">
CSS
- After adding them to the HTML, you can add this font-family to the
body
in CSS file: - In order to center the card correctly, you'd better add
min-height: 100vh
to thebody
- If you want, you can use the recommended color for the background:
body{ font-family: 'Outfit', sans-serif; // google fonts which is suggested min-height: 100vh; background-color: hsl(212, 45%, 89%); }
Hope I am helpful. :)
Marked as helpful0 - If you want to use the recommended font-family for this project, you can add the following between the
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