@weslei573
Posted
Uma coisa que falta e só voçê dominar mais o CSS que ira melhora seu codigo
@weslei573
Posted
Uma coisa que falta e só voçê dominar mais o CSS que ira melhora seu codigo
@patriciarrs
Posted
Greetings, Mutsah! 👋
Good effort on this challenge! 👍 The layout looks good on a range of screen sizes 🙂
I want to suggest taking another look at using semantic HTML on your site as it will also improve accessibility. Currently, you are using div
tags to wrap other elements, but other tags (for example, main
and footer
) are more suitable.
If you’d like to learn more about how to use semantic HTML on your site, check out this course from web.dev.
The solution has differences from the design. The two most noticeable are the font family and the card height.
head
tag:<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&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@700&display=swap" rel="stylesheet">
To get the above, you can go to the link you have in your head
tag and then click "Get font" -> "Get embed code".
height
property to the card element to match the design.Edit: A better practice than adding a fixed height
to the card, is to have the correct spacing between elements by using the margin
and padding
properties as needed. To check the spacing between elements, in the Figma files select an element, press Alt
, and hover another element.
I hope you find this helpful.
Happy coding!
@mue864
Posted
@patriciarrs Hi, Patricia, thank you for the valuable feedback, I was having troubles in using the font and thanks for pointing that out.
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