|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: media.src,v 1.17 1997-10-20 03:01:55 ian Exp $ --> |
| 3 | +<!-- $Id: media.src,v 1.18 1997-10-21 00:31:24 ian Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Media types</TITLE> |
@@ -32,9 +32,9 @@ will typically need a larger font on a computer screen than on paper. |
32 | 32 | For this reason, it's necessary to express that a style sheet -- or a |
33 | 33 | section of a style sheet -- applies to certain media types. |
34 | 34 |
|
35 | | -The following sections describe how authors may |
36 | | -specify different style sheets for different media (all of which |
37 | | -participate in the <a href="./cascade.html">cascade</a>). |
| 35 | +<P>The following sections describe how authors may specify different |
| 36 | +style sheets for different media (all of which participate in the <a |
| 37 | +href="./cascade.html">cascade</a>). |
38 | 38 |
|
39 | 39 | <H2>Specifying media-dependent style sheets</H2> |
40 | 40 | <P>There are currently two ways to specify media dependencies for |
@@ -72,14 +72,20 @@ of an external style sheet. |
72 | 72 | to different media types. |
73 | 73 | </UL> |
74 | 74 |
|
75 | | -<P>Due to the same media type value, the two examples above are semantically |
76 | | -equivalent. |
| 75 | +<P>Since these two examples have the same <a href="#media-types">media |
| 76 | +type</a>, they are semantically equivalent. |
| 77 | + |
| 78 | +<H3>The @media rule</H3> |
| 79 | + |
| 80 | +<P>An @media rule lists the <a href="#media-types">media types</a> |
| 81 | +(separated by commas) affected by a set of rules delimited by curly |
| 82 | +braces. |
77 | 83 |
|
78 | 84 | <p>The <span class="index-inst" title="@media">@media</span>construct |
79 | | -also allows style sheet rules for various media in the same style |
80 | | -sheet: |
| 85 | +allows style sheet rules for various media in the same style |
| 86 | +sheet:</P |
81 | 87 |
|
82 | | -<pre> |
| 88 | +<pre class="example"> |
83 | 89 | @media print { |
84 | 90 | BODY { font-size: 10pt } |
85 | 91 | } |
|
91 | 97 | } |
92 | 98 | </pre> |
93 | 99 |
|
| 100 | +<P>All @import rules in a @media block must appear before |
| 101 | +the other rules in the block. |
| 102 | + |
94 | 103 | <H2><a name="media-types">Recognized media types</a></H2> |
95 | 104 |
|
96 | 105 | <p>Due to rapidly changing technologies, CSS2 does not specify a |
|
0 commit comments