I'm trying to change h1
to font-weight: 300
. Except when I did:
.h1{
font-weight: 300;
}
Nothing happened!
So to test the font weight on other text elements, I set the entire encapsulating container, container-fluid
, to a font-weight: 200
:
.container-fluid{
font-family: 'Work Sans', sans-serif;
font-weight: 200;
}
...And only a couple elements changed their font-weight
(see here: JFiddle). The rest stayed the same.
Why is this happening? If someone could show me how to change the font-weight of h1
, that would be very appreciated!
I'm using Chrome if that's relevant. But I also ran my JFiddle on Safari and it was the same result.
I imported all the font weights that I needed at the top of my CSS file:
/*import custom font*/
@import 'http://fonts.googleapis.com/css?family=Work+Sans:100,200,300,400,500,600,700,800,900';
I tried using http:
as this post suggested. Didn't change anything.
h1
not.h1
– Studnia