CSS - @import


Use to import another CSS file.
@import url [list of media types];
Must appear before any CSS rules.

Examples:
@import "default.css";
@import "print.css" print;
@import url(../relative-path/default.css);
@import url("https://fonts.googleapis.com/css?family=Tangerine");

CSS @import is equivalent to C++ #include;

Ads by Google



Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath