You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-gcpm/Overview.src.html
+29-2Lines changed: 29 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3620,22 +3620,49 @@ <h3>Page groups</h2>
3620
3620
3621
3621
<h3>'page' and 'column' pseudo-elements</h3>
3622
3622
3623
+
<p>The 'page()' and 'column()' pseudo-element allows the selection of
3624
+
pages, columns, and elements within.
3625
+
3626
+
3627
+
<divclass=example>
3628
+
<pre>
3629
+
article::column(2n) { /* select every other column of an article */
3630
+
...
3631
+
}
3632
+
</pre>
3633
+
</div>
3634
+
3635
+
<divclass=example>
3636
+
<pre>
3637
+
article::page(left) { /* select all left pages in an article */
3638
+
background: pink;
3639
+
}
3640
+
</pre>
3641
+
</div>
3642
+
3643
+
3623
3644
<divclass=example>
3624
3645
<pre>
3625
3646
article::page(left) p { /* select all p elements that appear on left pages in an article */
3626
-
...
3647
+
text-align: left;
3627
3648
}
3628
3649
</pre>
3629
3650
</div>
3630
3651
3652
+
<p>Several syntax variations are possible.
3653
+
3631
3654
<divclass=example>
3632
3655
<pre>
3633
-
article::column(2n) { /* select every other column of an article */
3656
+
@page :left {
3634
3657
...
3658
+
{
3659
+
p { text-align: left }
3660
+
}
3635
3661
}
3636
3662
</pre>
3637
3663
</div>
3638
3664
3665
+
3639
3666
<h2>Selecting lines</h2>
3640
3667
3641
3668
<p>The 'first-line' pseudo-element selects the first formatted line of an element. The 'first-lines(n)' pseudo-element selects the first n formatted lines of an element.
0 commit comments