Skip to content

Commit c500ef7

Browse files
committed
x
1 parent 80de005 commit c500ef7

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

css3-gcpm/Overview.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3614,6 +3614,41 @@ <h3 id=turning-columns-into-regions><span class=secno>14.2. </span>Turning
36143614
&lt;/article>
36153615
</pre>
36163616
</div>
3617+
3618+
<div class=example> Consider this markup:
3619+
<pre>
3620+
&lt;div class=text>
3621+
&lt;div lang=en>
3622+
Some words in English ...
3623+
&lt;/div>
3624+
&lt;div lang=fr>
3625+
Quelques mots en Francaise...
3626+
&lt;/div>
3627+
&lt;/div>
3628+
</pre>
3629+
3630+
<p>Here is the CSS code to lay these out into two columns with different
3631+
background colors:
3632+
3633+
<pre>
3634+
div.text {
3635+
columns: 32em;
3636+
}
3637+
3638+
div:lang(en) {
3639+
display: table-cell;
3640+
color: black; background: white;
3641+
}
3642+
3643+
div:lang(fr) {
3644+
display: table-cell;
3645+
color: white; background: black;
3646+
}
3647+
</pre>
3648+
3649+
<p>This example shows that use cases that first seem to require regions
3650+
may be achieved with other methods.
3651+
</div>
36173652
<!--
36183653
<div class=example>
36193654
<pre>

0 commit comments

Comments
 (0)