Use @import to import CSS files

Learn how to use the @import directive to import CSS files

From any CSS file, you can use@importInstructions.

The method of use is as follows:

@import url(myfile.css)

url() can manage absolute or relative URLs.

One thing you need to know is@importDirectives must be placed before any other CSS in the file, otherwise they will be ignored.

You can use media descriptors to load CSS files only on specific media:

@import url(myfile.css) all;
@import url(myfile-screen.css) screen;
@import url(myfile-print.css) print;

Download mine for freeCSS Manual


More CSS tutorials: