|
9 | 9 |
|
10 | 10 |
|
11 | 11 | <style type="text/css"> |
| 12 | +/* |
12 | 13 | .cols { width: 500px; height: 200px; background: #fff; position: relative; border: solid 10px blue; margin: 0.5em 2em 1em 0; font: bold 14px/19px Arial, sans-serif } |
13 | 14 | .cols p { padding: 3px; margin: 0 } |
14 | 15 | .col { position: absolute; left: 0px; top: 0; z-index: 6; width: 170px } |
15 | 16 | .gap { position: absolute; background: black; width: 5px; bottom: 0px; top: 0px; border: 10px solid red; border-top-width: 0; border-bottom-width: 0; } |
16 | 17 | .rep { position: absolute; top: 45px; background: #333; height: 110px; width: 100px; color: white; z-index: 4 } |
| 18 | +*/ |
| 19 | + |
| 20 | +div.example img { display: block; margin: 1em 0 } |
| 21 | + |
17 | 22 | div.example:before { width: 9em !important } |
18 | 23 | div.example { padding-top: 0.5em } |
19 | 24 |
|
@@ -2549,7 +2554,7 @@ <h3>Float intrusion in multicol elements</h3> |
2549 | 2554 | middle column is a long word that is clipped in the middle of the |
2550 | 2555 | column gap. |
2551 | 2556 |
|
2552 | | -<p><img src=1.png> |
| 2557 | +<img src=1.png> |
2553 | 2558 |
|
2554 | 2559 | <!-- |
2555 | 2560 | <div class=cols> |
@@ -2615,7 +2620,7 @@ <h3>Float intrusion in multicol elements</h3> |
2615 | 2620 |
|
2616 | 2621 | <p>In this example, the image naturally appears in the last column. Due to being floated to the right, the image will intrude into the neighboring column to the left. |
2617 | 2622 |
|
2618 | | -<p><img src=2.png> |
| 2623 | +<img src=2.png> |
2619 | 2624 | <!-- |
2620 | 2625 | <div class=cols style="height: 186px"> |
2621 | 2626 |
|
@@ -2803,7 +2808,7 @@ <h3>The 'float-offset' property</h3> |
2803 | 2808 |
|
2804 | 2809 | <p>This code can be rendered as: |
2805 | 2810 |
|
2806 | | -<p><img src=3.png> |
| 2811 | +<img src=3.png> |
2807 | 2812 |
|
2808 | 2813 | <!-- |
2809 | 2814 | <div class=cols> |
@@ -2888,7 +2893,7 @@ <h3>The 'float-offset' property</h3> |
2888 | 2893 |
|
2889 | 2894 | <p>The column box is the containing block for floats, so if an image naturally appears in the first column it will float to its bottom: |
2890 | 2895 |
|
2891 | | -<p><img src=5.png> |
| 2896 | +<img src=5.png> |
2892 | 2897 |
|
2893 | 2898 | <!-- |
2894 | 2899 | <div class=cols> |
@@ -2934,7 +2939,7 @@ <h3>The 'float-offset' property</h3> |
2934 | 2939 | <p>The '1gr' value on |
2935 | 2940 | 'width' is equal to the width of the containing block. Here is a possible rendering: |
2936 | 2941 |
|
2937 | | -<p><img src=6.png> |
| 2942 | +<img src=6.png> |
2938 | 2943 |
|
2939 | 2944 | <!-- |
2940 | 2945 | <div class=cols> |
@@ -2979,7 +2984,7 @@ <h3>The 'float-offset' property</h3> |
2979 | 2984 | width: 1gr } |
2980 | 2985 | </pre> |
2981 | 2986 |
|
2982 | | -<p><img src=7.png> |
| 2987 | +<img src=7.png> |
2983 | 2988 |
|
2984 | 2989 | <!-- |
2985 | 2990 | <div class=cols> |
@@ -3042,7 +3047,7 @@ <h3>The 'float-offset' property</h3> |
3042 | 3047 | rendering. |
3043 | 3048 |
|
3044 | 3049 |
|
3045 | | -<p><img src=8.png> |
| 3050 | +<img src=8.png> |
3046 | 3051 |
|
3047 | 3052 | <!-- |
3048 | 3053 | <div class=cols> |
@@ -3086,7 +3091,7 @@ <h3>The 'float-offset' property</h3> |
3086 | 3091 | <p>The code above floats the element to the top right of the multi-column element. Further, it sets the width of the image to the width of one |
3087 | 3092 | column plus one column gap. Here is a possible rendering. |
3088 | 3093 |
|
3089 | | -<p><img src=9.png> |
| 3094 | +<img src=9.png> |
3090 | 3095 |
|
3091 | 3096 | <!-- |
3092 | 3097 | <div class=cols> |
@@ -3133,7 +3138,7 @@ <h3>The 'float-offset' property</h3> |
3133 | 3138 | <p>The code above floats the element to the top right of the multi-column element. Further, it sets the width of the image to the width of one |
3134 | 3139 | column plus half the column gap. |
3135 | 3140 |
|
3136 | | -<p><img src=10.png> |
| 3141 | +<img src=10.png> |
3137 | 3142 |
|
3138 | 3143 | <!-- |
3139 | 3144 | <div class=cols> |
@@ -3184,7 +3189,7 @@ <h3>The 'float-offset' property</h3> |
3184 | 3189 | the one next to it. Vertically, element should be in the middle of the |
3185 | 3190 | column. Here is a possible rendering: |
3186 | 3191 |
|
3187 | | -<p><img src=11.png> |
| 3192 | +<img src=11.png> |
3188 | 3193 |
|
3189 | 3194 | <!-- |
3190 | 3195 | <div class=cols> |
@@ -3231,7 +3236,7 @@ <h3>The 'float-offset' property</h3> |
3231 | 3236 |
|
3232 | 3237 | <p>The only difference between this and the previous example is the horizontal value on 'float-offset'. The value ''1.25gr'' means that a point 25% into the image in the inline direction will be aligned with a point 25% into the column gap. Here is a possible rendering: |
3233 | 3238 |
|
3234 | | -<p><img src=12.png> |
| 3239 | +<img src=12.png> |
3235 | 3240 |
|
3236 | 3241 | <!-- |
3237 | 3242 | <div class=cols> |
|
0 commit comments