Skip to content

Commit 3485afb

Browse files
committed
Tweak example 4.
1 parent b1396f4 commit 3485afb

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

css3-hierarchies/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ <h2 id=nesting-selector><span class=secno>2. </span> The &amp; Selector</h2>
309309
<p>...produces the same results as the following CSS:
310310

311311
<pre>
312-
div .keyword {color:red;}
313-
div .constant {color:red;}
314-
p .keyword {color:red;}
315-
p .constant {color:red;}</pre>
312+
div .keyword, div .constant, p .keyword, p .constant {
313+
color:red;
314+
}
315+
</pre>
316316
</div>
317317

318318
<p>Multiple style rules can be embedded within a style rule. Style rules

css3-hierarchies/Overview.src.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,9 @@ <h2 id="nesting-selector">
192192
<p>...produces the same results as the following CSS:
193193

194194
<pre>
195-
div .keyword {color:red;}
196-
div .constant {color:red;}
197-
p .keyword {color:red;}
198-
p .constant {color:red;}</pre>
195+
div .keyword, div .constant, p .keyword, p .constant {
196+
color:red;
197+
}
199198
</div>
200199

201200
<p>Multiple style rules can be embedded within a style rule. Style rules can be embedded arbitrarily deeply. Embedded style rules and properties can both appear in a single declaration block, and in any order.</p>

0 commit comments

Comments
 (0)