Skip to content

Commit e99f604

Browse files
committed
fixing typos, adding examples
1 parent 99d9787 commit e99f604

1 file changed

Lines changed: 36 additions & 11 deletions

File tree

css3-multicol/Overview.src.html

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,11 @@ <h2>The multi-column model</h2>
246246
in the block direction. All column boxes in a multi-column element
247247
have the same column width, and all column boxes in a row have the
248248
same column height. Within each row in the multi-column element,
249-
adjacent column boxes are separated by a <em>column gap</em>, which may
250-
contain a <em>column rule</em>. All column gaps and column rules in the
251-
same row are equal.
249+
adjacent column boxes are separated by a <em>column gap</em>, which
250+
may contain a <em>column rule</em>. All column gaps in the same row
251+
are equal. All column rules in the same row are also equal, if the
252+
appear; column rows only appear between columns that both have
253+
content.
252254

253255
<p>In the simplest case a multicol element will contain only one row
254256
of columns, and the height of each column will be equivalent to the
@@ -519,7 +521,7 @@ <h2>The multi-column model</h2>
519521
as per CSS 2.1 section 9.4.1.
520522

521523
<div class="example">
522-
<p>A top margin set on the first child element of a mulitcol element will not collase with the margins of the multicol element.
524+
<p>A top margin set on the first child element of a multicol element will not collapse with the margins of the multicol element.
523525
</div>
524526

525527
<p>Nested multi-column elements are allowed, but there may be
@@ -828,20 +830,20 @@ <h3>Stacking context</h3>
828830

829831
<h2>Column gaps and rules</h2>
830832

831-
<p>Column gaps and rules are placed between columns of the same
832-
multi-column element. The length of the column gaps and column rules
833+
<p>Column gaps and rules are placed between columns in the same
834+
multicol element. The length of the column gaps and column rules
833835
is equal to the length of the columns. Column gaps take up space. That
834836
is, column gaps will push apart content in adjacent columns (within
835-
the same multi-column element).
837+
the same multicol element).
836838

837839
<p>A column rule is placed in the middle of the column gap. Column
838840
rules do not take up space. That is, the presence or thickness of a
839841
column rule will not alter the placement of anything else. If a column
840842
rule is wider than its gap, the column rule will overlap adjacent
841843
column boxes. Column rules are painted just above the background of
842844
the multicol element. This allows child elements with 'z-index' values
843-
to be on top of column rules. Column rules are only drawn between
844-
columns that have content.
845+
to be on top of column rules. Column rules are only drawn between two
846+
columns that both have content.
845847

846848

847849
<h3>'column-gap'</h3>
@@ -1018,6 +1020,29 @@ <h3>'column-rule'</h3>
10181020
the same place in the style sheet. Omitted values are set to their
10191021
initial values.
10201022

1023+
<div class=example>
1024+
1025+
<p>In this example, the column rule and the column gap have the same
1026+
width. Therefore, they will occupy exactly the same space.
1027+
1028+
<pre>
1029+
body {
1030+
column-gap: 1em;
1031+
column-rule-width: 1em;
1032+
column-rule-style: solid;
1033+
column-rule-color: black;
1034+
}
1035+
</pre>
1036+
</div>
1037+
1038+
1039+
<div class=example>
1040+
If a tall image is moved to a column on the next page to find room for
1041+
it, its natural column may be left empty. If so, the column is
1042+
considered empty for the purpose of deciding if the column rule should
1043+
be drawn or not.
1044+
</div>
1045+
10211046

10221047

10231048
<h2>Column breaks</h2>
@@ -1148,7 +1173,7 @@ <h2>Column breaks</h2>
11481173
<p>When a page or column break splits a box, the box's margins,
11491174
borders, and padding have no visual effect where the split occurs.
11501175
However, the margin immediately after a forced page/column break will
1151-
be preserved. A forced page/colum break is a break that does not occur
1176+
be preserved. A forced page/column break is a break that does not occur
11521177
naturally.
11531178

11541179
<p class=note>In the future, new properties may describe alternate
@@ -1160,7 +1185,7 @@ <h2>Column breaks</h2>
11601185
elements and after <code>img</code> elements:
11611186

11621187
<pre>
1163-
.multicol { colum-width: 8em }
1188+
.multicol { column-width: 8em }
11641189
.multicol h2 { break-before: column; margin-top: 2em }
11651190
.multicol img { break-after: column }
11661191
</pre>

0 commit comments

Comments
 (0)