Reputation: 693
My google fonts display fine on my live website, but in production on localhost, they show differently. More boxy/standard, but not the same as the standard font.
How they show on localhost:
How they show on live server (this is want I want):
Here's my CSS:
@import url('https://fonts.googleapis.com/css?family=Droid+Sans|Caveat+Brush');
body{
font-family: "Droid Sans", sans-serif; //'projects'
}
#title {
font-family: 'Caveat Brush', cursive; //'Junior Web Developer'
}
I am using gulp
and browser-sync
, but opening the html file directly from the browser has the same problem
Upvotes: 2
Views: 3036
Reputation: 346
Move the @import code to the very top of your CSS file above everything else.
@import url('https://fonts.googleapis.com/css?family=Droid+Sans|Caveat+Brush');
Upvotes: 1