CSS Help with custom fonts

CSS Help with @font-face

When trying to use custom fonts the fonts are not applying to my webpage.
am I missing anything?


The font does work off replit and i just downloaded it and retried typing it 2x is something wrong with the code

Hey @MasterLink, welcome to the forums!

This is an easy job! Just replace you code with this :

@font-face {
font-family: "SF-Pro";
src: url("SF-Pro-Display-Black.otf");
}

To add this font family an argument in CSS just put this code:

font-family:"SF-Pro"

Hope this works!

1 Like

@MasterLink, did it work?

omg just figured it out. I turned out I did not link the css to the html :sob::sob::sob:. Thanks for the help :+1:

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.