Prev | Current Page 91 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Where relative URIs are used, they??™re
interpreted as being relative to the
importing style sheet.
You can also specify one or more media types to which the imported style sheet
applies??”simply append a comma-separated list of media types to the URI.
Example
Here are examples of the most common
usage forms:
@import url("/css/main.css");
@import "local.css";
SPEC
CSS1
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE5.5+
FULL FULL FULL BUGGY
At-rules Reference
The Ultimate CSS Reference 50
Here??™s an example of a media type specification:
@import url(/css/screen.css) screen, projection;
The @import rules in a style sheet must precede all rule sets. An @import rule that
follows one or more rule sets will be ignored. As such, the example below shows
an incorrect usage; because it appears after a rule set, the following @import rule
will be ignored:
html {
background-color: #fff;
color: #000;
}
/* The following rule will be ignored */
@import url("other.css");
Compatibility
Opera Safari Firefox Internet Explorer
9.


Pages:
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103