Visit Mozilla.org

CSS:@import

From MDC

« CSS Reference

[edit] Summary

@import allows users to import style rules from other style sheets.

[edit] Syntax

@import "url";
@import "url" media1, media2, ...;
@import url("url");
@import url("url") media1;

[edit] Notes

So that user agents can avoid retrieving resources for unsupported media types, authors may specify media-dependent @import rules. These conditional imports specify comma-separated media types after the URI. In the absence of any media types, the import is unconditional. Specifying all for the medium has the same effect.

[edit] Examples

@import url("fineprint.css") print;
@import url("bluish.css") projection, tv;

[edit] Specifications

[edit] Browser compatibility

[edit] See also

@media, @font-face