Skip to content

Commit 6fea3b5

Browse files
author
howcome
committed
revising examples
1 parent fe64cd8 commit 6fea3b5

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

css-gcpm/Overview.src.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3523,8 +3523,7 @@ <h2>Selecting columns and pages</h2>
35233523

35243524
<h3>Selecting certain named pages</h3>
35253525

3526-
<p>In CSS2, <a href="http://www.w3.org/TR/CSS2/page.html#page-selectors">first, left and right pages</a> can be selected. This specification exte adds selector grammar from <a href="http://www.w3.org/TR/css3-selectors/#nth-child-pseudo"></a>.
3527-
3526+
<p>In CSS2, <a href="http://www.w3.org/TR/CSS2/page.html#page-selectors">first, left and right pages</a> can be selected. This specification extends pages selectors:
35283527

35293528
<!--
35303529
<p>The 'first-page' pseudo-element is similar to the 'first-letter'
@@ -3620,6 +3619,7 @@ <h3>Page groups</h2>
36203619

36213620
<h3>'page' and 'column' pseudo-elements</h3>
36223621

3622+
36233623
<p>The 'page()' and 'column()' pseudo-element allows the selection of
36243624
pages, columns, and elements within.
36253625

@@ -3649,14 +3649,20 @@ <h3>'page' and 'column' pseudo-elements</h3>
36493649
</pre>
36503650
</div>
36513651

3652-
<p>Several syntax variations are possible.
3652+
<p>It is also possible to place the code inside @page:
36533653

36543654
<div class=example>
36553655
<pre>
36563656
@page :left {
3657-
...
3657+
background: pink; /* declaration applies to pages */
36583658
{
3659-
p { text-align: left }
3659+
p { text-align: left } /* declaration applies to elements on page */
3660+
}
3661+
@top-center {
3662+
background: orange; /* declaration applies to margin box */
3663+
{
3664+
p { text-align: left } /* declaration applies to elements in margin box */
3665+
}
36603666
}
36613667
}
36623668
</pre>

0 commit comments

Comments
 (0)