CSS @import Rule


 The @import stylesheet rule is used to import one stylesheet into another. This rule also supports media queries, allowing the user to import the media-specific style sheet. After any @charset declaration, the @import rule must be declared at the top of the document.

Syntax

Example


Property Values

Value Description
url|string A url or string indicating the location of the resource to be imported. The url can be either absolute or relative.
list-of-media-queries A list of media queries separated by commas that condition the application of the CSS rules defined in the linked URL.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
@import 1.0 1.0 1.0 5.5 3.5