File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,34 +15,29 @@ The following image illustrates flowing the same content across regions of diffe
1515#source {
1616 flow-into: article;
1717}
18+ /* page template arranges columns using a flexbox */
19+ .page {
20+ display:flexbox;
21+ padding:0.5em
22+ }
1823/* render the content from the 'article' named flow into .region */
1924.region {
2025 flow-from: article;
21- }
22- #region_1,
23- #region_2,
24- #region_3 {
25- float: left;
2626 background: lightblue;
27+ margin:0.5em;
2728}
28- #region_1,
29- #region_3 {
30- width: 20%;
31- height: 600px;
32- }
33- #region_2 {
34- width: 50%;
35- height: 200px;
36- margin: 0 5%;
37- }
29+ #region_1, #region_3 { width:flex(1); }
30+ #region_2 { width:flex(1.7); height:40%; }
3831</code>
3932<code html>
4033<div id="source">
4134 <p>Lorem ipsum dolor sit amet ...</p>
4235</div>
43- <div id="region_1" class="region"></div>
44- <div id="region_2" class="region"></div>
45- <div id="region_3" class="region"></div>
36+ <div class="page">
37+ <div id="region_1" class="region"></div>
38+ <div id="region_2" class="region"></div>
39+ <div id="region_3" class="region"></div>
40+ </div>
4641</code>
4742
4843==== Flowing content between areas of a non-grid layout ====
You can’t perform that action at this time.
0 commit comments