why aren't fonts working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

why aren't fonts working?

when i type in: font-family: 'Press Start 2P';font-size: 22px; it doesn't change font

14th Jul 2021, 5:07 AM
Hayden Hickling
Hayden Hickling - avatar
4 Answers
+ 3
Are you trying this on SoloLearn? If so did you add the link in the head of your html and then place the code in a style tag or did you use an @import and the code in your CSS or style tag? If you're doing this on your PC in a project or on a server do you do one of the above or did you download the font and add it to your project so that the font is available? See here; select the font and check out the 'use on the web' and CSS rules sections; https://fonts.google.com/specimen/Press+Start+2P#about
14th Jul 2021, 5:26 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
did u link or import the font? google fonts gives what needs to be embedded
14th Jul 2021, 5:26 AM
Arturop
Arturop - avatar
+ 1
link NOT local (downloaded) font location but CDN!!
14th Jul 2021, 5:57 AM
Shadoff
Shadoff - avatar
- 1
where did you add these two css rules? is the specified font imported in css, or at least available (installed) in your device? provide your full code in order to get helped further: there could be a lot of reason for not working / applying ^^
14th Jul 2021, 7:29 AM
visph
visph - avatar