-1

I want to import fonts from Google Fonts without having them in the directory and without having to import them in my .html file. Is there any way to reference a .css file from your main .css file?

Dobake
  • 3
  • 1
  • There might be a reason you need to do this, but in case you didn't know, while this does help to consolidate your CSS, it is actually better performance wise to include Google Fonts directly from the CDN in your HTML file instead of including it in the CSS. – bencodezen May 10 '17 at 00:37

1 Answers1

1

Put the following code at the top of your main .css file, and point the url to the file you want to import.

@import url("file.css");
carson
  • 26
  • 3