File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3614,6 +3614,41 @@ <h3 id=turning-columns-into-regions><span class=secno>14.2. </span>Turning
36143614</article>
36153615</ pre >
36163616 </ div >
3617+
3618+ < div class =example > Consider this markup:
3619+ < pre >
3620+ <div class=text>
3621+ <div lang=en>
3622+ Some words in English ...
3623+ </div>
3624+ <div lang=fr>
3625+ Quelques mots en Francaise...
3626+ </div>
3627+ </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>
You can’t perform that action at this time.
0 commit comments