google fonts not working in css code example

Example 1: css import google font not working

Try to put your import on the top of your file, before any declaration.

Example 2: fonts from google fonts do not work

<!-- This is an easy thing you need to do -->
<style>
  /* I chose Orbitron, you can change it */
  body {
  font-family: 'Orbitron', sans-serif; /* this will change the font troughout the body, if you need help changing that, email me at [email protected] */
  }
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;669&display=swap');
</style>
<div class="example">

Tags:

Css Example