Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!
Media @Import

Description

The @import parser directive is used to import one style sheet into another.

This directive has the form:

@import { URI | string }
  [media type,...];

Note that one or more optional media types may be specified indicating to which media types the imported style sheet applies. This is done by appending a comma-separated list of media types to the URI. The following example illustrates the syntax:

@import
  url(/css/screen-styles.css)
  screen, projection;

Note: The @import directive must appear before all rule sets otherwise it will be ignored.

Examples

This example imports a print and screen rule set into this style sheet:

@import url("/css/print.css");
@import "screen.css";

Browser Support

Chrome Firefox IE Safari Opera
1

1 - media types not supported by IE

Miscellaneous Information

Defined In: CSS1