Design comparison
Solution retrospective
Becoming more proficient in CSS
What challenges did you encounter, and how did you overcome them?For some reason the font-face doesn't work. It works in my preview on VS but doesn't work when I open the index.html file and look at it in the browser. Not sure why?
What specific areas of your project would you like help with?For some reason the font-face doesn't work. It works in my preview on VS but doesn't work when I open the index.html file and look at it in the browser. Not sure why?
Community feedback
- @Sharky83Posted 4 months ago
when adding font files to projects, and using the @ fontface to css file, you need to also add the "format" at the end or each url. it works on yours locally becuse you have the font on your local system i think.
eg:
@font-face { font-family: "inter"; src: url(/assets/fonts/static/Inter-Bold.ttf) format(""ttf), url(/assets/fonts/static/Inter-SemiBold.ttf) format(""ttf), url(/assets/fonts/static/Inter-Bold.ttf) format(""ttf); }
to speed up adding fonts for challenges only (not good for real projects) use the @import feature on google fonts!
Marked as helpful1 - @BekzodIsakovPosted 4 months ago
Overall the solution looks good but it has some job to be done such as font-family, font-size, spacing between elements and the width of the card.
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