- 1
why aren't fonts working?
when i type in: font-family: 'Press Start 2P';font-size: 22px; it doesn't change font
4 odpowiedzi
+ 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
+ 2
did u link or import the font? google fonts gives what needs to be embedded
+ 1
link NOT local (downloaded) font location but CDN!!
- 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 ^^