Skip to content

Commit 5329698

Browse files
committed
machine-generated
1 parent 77aef45 commit 5329698

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

css3-gcpm/Overview.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3044,10 +3044,12 @@ <h2 id=page-floats><span class=secno>12. </span>Page floats</h2>
30443044
<p>
30453045

30463046
<div class=example> <img alt="sample rendering" src=regions.png>
3047+
<p>In this example, a commonly used newspaper layout is easily described:
3048+
30473049
<pre>
3048-
body { columns: 3 }
3049-
img.A { column-span: 2; width: 100% }
3050-
.one { column-span: 2 }
3050+
body { columns: 3 }
3051+
img.A { column-span: 2; width: 100% } /* image spans two columns */
3052+
.one { column-span: 2 } /* lead paragraph spans two columns */
30513053
</pre>
30523054
</div>
30533055

@@ -3647,18 +3649,17 @@ <h3>Turning columns into regions</h3>
36473649
(which appears first in the markup) spans two columns and is floated to
36483650
the top, thereby escaping its natural column. The first column, which
36493651
holds the start of the textual content is also floated to the top,
3650-
spanning two columns, and therefore ends up just under the image. Du to
3651-
the &lsquo;<code class=css>visibility: collapse</code>&rsquo; setting on
3652-
the first column, the second column will move into its space.
3652+
spanning two columns, and therefore ends up just under the image. When
3653+
the first column/region is floated away, the second column will move into
3654+
its space.
36533655

36543656
<pre>
36553657
article { columns: 3 }
36563658
img { column-span: 2; width: 100%; float: top }
3657-
article::column(1) { /* selects column 1 */
3659+
article::region(1) { /* selects column 1 */
36583660
column-span: 2;
36593661
float: top;
3660-
visibility: collapse; /* so that column 2 moves in */
3661-
height: 3em; /* or something */
3662+
height: 3em; /* sets preferred height of region */
36623663
}
36633664

36643665
&lt;article>

0 commit comments

Comments
 (0)