Skip to content

Commit 567cc54

Browse files
committed
x
1 parent 6e15ab8 commit 567cc54

1 file changed

Lines changed: 22 additions & 34 deletions

File tree

css3-gcpm/Overview.html

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@
99
type="text/css">
1010

1111
<style type="text/css">
12+
/*
1213
.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 }
1314
.cols p { padding: 3px; margin: 0 }
1415
.col { position: absolute; left: 0px; top: 0; z-index: 6; width: 170px }
1516
.gap { position: absolute; background: black; width: 5px; bottom: 0px; top: 0px; border: 10px solid red; border-top-width: 0; border-bottom-width: 0; }
1617
.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+
1722
div.example:before { width: 9em !important }
1823
div.example { padding-top: 0.5em }
1924

@@ -3079,9 +3084,8 @@ <h3 id=float-intrusion-in-multicol-elements><span class=secno>13.1.
30793084

30803085
<p>In this example, the image is wider than the column and will therefore
30813086
intrude into the neighboring column. At the bottom of the middle column
3082-
is a long word that is clipped in the middle of the column gap.
3083-
3084-
<p><img src=1.png> <!--
3087+
is a long word that is clipped in the middle of the column gap. <img
3088+
src=1.png> <!--
30853089
<div class=cols>
30863090
30873091
<p>Ab cde fgh i jkl. Mno<br>
@@ -3140,9 +3144,7 @@ <h3 id=float-intrusion-in-multicol-elements><span class=secno>13.1.
31403144

31413145
<p>In this example, the image naturally appears in the last column. Due to
31423146
being floated to the right, the image will intrude into the neighboring
3143-
column to the left.
3144-
3145-
<p><img src=2.png> <!--
3147+
column to the left. <img src=2.png> <!--
31463148
<div class=cols style="height: 186px">
31473149
31483150
<p>
@@ -3355,9 +3357,7 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
33553357
&lt;/html>
33563358
</pre>
33573359

3358-
<p>This code can be rendered as:
3359-
3360-
<p><img src=3.png> <!--
3360+
<p>This code can be rendered as: <img src=3.png> <!--
33613361
<div class=cols>
33623362
<p>Lorem ipsum dolor<br>sit amet. Nam at jus.
33633363
<br><br><br><br><br><br><br>
@@ -3437,9 +3437,8 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
34373437
</pre>
34383438

34393439
<p>The column box is the containing block for floats, so if an image
3440-
naturally appears in the first column it will float to its bottom:
3441-
3442-
<p><img src=5.png> <!--
3440+
naturally appears in the first column it will float to its bottom: <img
3441+
src=5.png> <!--
34433442
<div class=cols>
34443443
34453444
<p>Lorem ipsum dolor<br>sit amet. Nam at jus.<br>
@@ -3480,9 +3479,7 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
34803479

34813480
<p>The &lsquo;<code class=css>1gr</code>&rsquo; value on &lsquo;<code
34823481
class=property>width</code>&rsquo; is equal to the width of the
3483-
containing block. Here is a possible rendering:
3484-
3485-
<p><img src=6.png> <!--
3482+
containing block. Here is a possible rendering: <img src=6.png> <!--
34863483
<div class=cols>
34873484
34883485
<p>Lorem ipsum dolor<br>sit amet. Nam at jus.<br>
@@ -3526,8 +3523,7 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
35263523
float-offset: 2.5gr;
35273524
width: 1gr }
35283525
</pre>
3529-
3530-
<p><img src=7.png> <!--
3526+
<img src=7.png> <!--
35313527
<div class=cols>
35323528
35333529
<p>Lorem ipsum dolor<br>sit amet. Nam at jus.<br>
@@ -3556,8 +3552,7 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
35563552
</div>
35573553
35583554
-->
3559-
3560-
3555+
35613556
<p>Assuming a three-column layout, the same rendering can be achieved by
35623557
floating the element to the right instead:
35633558

@@ -3583,9 +3578,8 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
35833578

35843579
<p>The code above floats the element to the top right of the multi-column
35853580
element. Further, it sets the width of images to the width of two columns
3586-
plus the gap between them. Here is a possible rendering.
3587-
3588-
<p><img src=8.png> <!--
3581+
plus the gap between them. Here is a possible rendering. <img src=8.png>
3582+
<!--
35893583
<div class=cols>
35903584
35913585
<p>Lorem ipsum dolor<br>sit amet. Nam at jus.<br>
@@ -3623,9 +3617,8 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
36233617

36243618
<p>The code above floats the element to the top right of the multi-column
36253619
element. Further, it sets the width of the image to the width of one
3626-
column plus one column gap. Here is a possible rendering.
3627-
3628-
<p><img src=9.png> <!--
3620+
column plus one column gap. Here is a possible rendering. <img src=9.png>
3621+
<!--
36293622
<div class=cols>
36303623
36313624
<p>Lorem ipsum dolor<br>sit amet. Nam at jus.<br>
@@ -3666,9 +3659,7 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
36663659

36673660
<p>The code above floats the element to the top right of the multi-column
36683661
element. Further, it sets the width of the image to the width of one
3669-
column plus half the column gap.
3670-
3671-
<p><img src=10.png> <!--
3662+
column plus half the column gap. <img src=10.png> <!--
36723663
<div class=cols>
36733664
36743665
<p>Lorem ipsum dolor<br>sit amet. Nam at jus.<br>
@@ -3713,9 +3704,8 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
37133704
(&lsquo;<code class=css>1.5gr</code>&rsquo;) means that the horizontal
37143705
middle of the element should be in the middle of the gap between the
37153706
left-most column and the one next to it. Vertically, element should be in
3716-
the middle of the column. Here is a possible rendering:
3717-
3718-
<p><img src=11.png> <!--
3707+
the middle of the column. Here is a possible rendering: <img src=11.png>
3708+
<!--
37193709
<div class=cols>
37203710
37213711
<p>Lorem ipsum dolor<br>sit amet. Nam at jus.
@@ -3761,9 +3751,7 @@ <h3 id=the-float-offset-property><span class=secno>14.1. </span>The
37613751
class=property>float-offset</code></a>&rsquo;. The value &lsquo;<code
37623752
class=css>1.25gr</code>&rsquo; means that a point 25% into the image in
37633753
the inline direction will be aligned with a point 25% into the column
3764-
gap. Here is a possible rendering:
3765-
3766-
<p><img src=12.png> <!--
3754+
gap. Here is a possible rendering: <img src=12.png> <!--
37673755
<div class=cols>
37683756
37693757
<p>Lorem ipsum dolor<br>sit amet. Nam at jus.

0 commit comments

Comments
 (0)