I've been attempting to upload Gotham fonts onto a website I'm constructing, but unfortunately, it doesn't seem to be working. Despite my efforts to troubleshoot by searching through various resources, including Google, the issue persists. It seems there might be a syntax problem with the upload that I am unable to identify, and I'm hopeful that another set of eyes can spot it.
In the past, I have successfully loaded custom fonts on a Rails application, however, this is the first time I am dealing with pure front-end development. I have created a font file - Gotham_fonts - containing six files with the .otf extension.
style.css
@font-face {
font-family: 'Gotham-Book';
src: url('Gotham_fonts/Gotham-Book.otf') format('otf');
}
body {
font-family: 'Gotham-Book', arial, sans-serif;
}
Despite trying different variations and even using !important
, the issue remains unresolved. Do you think my fonts folder should actually be placed inside my CSS folder?