skip to Main Content

Variable Google Fonts not Applying Valid CSS Properties

I am learning how to use variable Google fonts and wrote this HTML: <h1>This heading should be condensed.</h1> with the following CSS: @import url('https://fonts.googleapis.com/css2?family=Anybody:wdth,[email protected],100..700&display=swap'); h1 { font-family: 'Anybody'; font-weight: 900; font-stretch: 50%; } The font 'Anybody' supports width axis (https://fonts.google.com/knowledge/using_type/styling_type_on_the_web_with_variable_fonts)…

VIEW QUESTION
Back To Top
Search