34

Hello everyone.
I'm trying to style a web page to use Comic Sans. This has worked in the past as I have the font installed on my system (Fedora 38), and I know that Firefox can see it because it can be selected as an option for the default font:

However when I try to use it in CSS, it is not recognized:

I checked and other fonts are not affected:

I can't use the Impact font either. Both work under Chrome.
Does anyone have a clue about what could be going on?
Thanks

you are viewing a single comment's thread
view the rest of the comments
[-] fhqwgads@possumpat.io 40 points 9 months ago

You need quotes around the font name. Courier works because it's one word.

[-] grandel@lemmy.ml 1 points 6 months ago* (last edited 6 months ago)

This is the right answer!

I keep reading that people hate CSS, but it's my favorite markup language.

People are probably just frustrated with it because they didn't learn it properly. But that applies to any other language too.

CSS is fucking awesome!

this post was submitted on 20 Jan 2024
34 points (94.7% liked)

Firefox

17302 readers
234 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS