Skip to content

Commit 80de005

Browse files
committed
adding example
1 parent 366efb0 commit 80de005

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

css3-gcpm/Overview.src.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
&lt;div class=text>
3201+
&lt;div lang=en>
3202+
Some words in English ...
3203+
&lt;/div>
3204+
&lt;div lang=fr>
3205+
Quelques mots en Francaise...
3206+
&lt;/div>
3207+
&lt;/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>

0 commit comments

Comments
 (0)