Prev | Current Page 92 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Full Full Full Full Full Full Full Buggy Buggy Buggy
The media type specification feature isn??™t supported by Internet Explorer versions
up to and including 7. In the example above, IE would attempt to request the file
./url(/css/screen.css) screen, projection??”that is, a file named
screen.css) screen, projection in a subdirectory named css in a subdirectory named
url( below the directory containing the importing style sheet.
Other Relevant Stuff
Linking CSS to a Web Document (p. 5)
51 At-rules Reference
@media
@media media type,??¦ {
ruleset
}
You can use the @media at-rule to
specify that one or more rule sets in a
style sheet will apply only to certain
media types. The at-rule must be
followed by a comma-separated list of
media types and a block that contains
rules.
It??™s up to you to decide whether you
prefer to use separate style sheets for
different media, or to use a single style
sheet with @media rules.
Example
This rule set will be applied only when the
document is printed or viewed in print
preview mode:
@media print {
body {
padding: 1in;
border: 0.


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