#Issue while displaying heading with California font on smaller screens
12 messages · Page 1 of 1 (latest)
@font-face {
font-family: 'California';
src: url('/fonts/California-woff2.woff2') format('woff2');
/* src: url('/fonts/California-woff.woff') format('woff'); */
font-display: swap;
}
@font-face {
font-family: 'ApexNewBook';
/* src: url('/fonts/ApexNew-Book.woff') format('woff'); */
src: url('/fonts/ApexNew-Book.woff2') format('woff2');
font-display: swap;
}
.heading {
font-family: 'California'; /* Make sure this font is available /
text-align: center;
margin-bottom: auto; / optional: add some space below the heading */
margin-top: 150px;
display: inline-block;
font-family: 'California';
font-size: 2.8em;
font-display: swap;
}
This is how I'm using it
Using css file for the moment
is the font in your public folder?