@ecemgo
Posted
Some recommendations regarding your code that could be of interest to you.
However, I couldn't view your Github repository, but I try to help you through the live site.
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
- For the color of the screen, you can use the recommended color in the
body
body{
font-family: 'Outfit', sans-serif; // google fonts which is suggested
min-height: 100vh;
background-color: hsl(212, 45%, 89%);
}
- If you use
max-width
instead ofwidth
andheight
, it makes the card responsive.
max-width: 300px;
/* width: 300px; */
/* height: 400px; */
/* position: relative; */
Hope I am helpful. :)
Marked as helpful