File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3192,6 +3192,45 @@ <h3>Turning columns into regions</h3>
31923192</ pre >
31933193</ div >
31943194
3195+
3196+ < div class =example >
3197+ Consider this markup:
3198+
3199+ < pre >
3200+ <div class=text>
3201+ <div lang=en>
3202+ Some words in English ...
3203+ </div>
3204+ <div lang=fr>
3205+ Quelques mots en Francaise...
3206+ </div>
3207+ </div>
3208+ </ pre >
3209+
3210+ < p > Here is the CSS code to lay these out into two columns with
3211+ different background colors:
3212+
3213+ < pre >
3214+ div.text {
3215+ columns: 32em;
3216+ }
3217+
3218+ div:lang(en) {
3219+ display: table-cell;
3220+ color: black; background: white;
3221+ }
3222+
3223+ div:lang(fr) {
3224+ display: table-cell;
3225+ color: white; background: black;
3226+ }
3227+ </ pre >
3228+
3229+ < p > This example shows that use cases that first seem to require regions may be achieved with other methods.
3230+
3231+ </ div >
3232+
3233+
31953234<!--
31963235<div class=example>
31973236<pre>
You can’t perform that action at this time.
0 commit comments