![]() | |
![]() |
| | Thread Tools | Display Modes |
#31
| |||
| |||
|
|
I am inclined to actually use the phrase "containing block" where the context shows it to do a job of containing. Because the point is that it is the container, the parent, the big house where the children live... It is crucial that it is on the container, the parent, that rel pos is made for the abs to work. And I find it interesting how the "layers" work and yet the float still exerts the influence to push aside (displace) the text or pics in the following divs. Just had never thought of the float rules operating from a smothered "underneath" position! Those float rules are powerful voodoo huh? <g |
#32
| |||
| |||
|
|
Not sure if this will convince you away from the dark side |
|
This is because in the one instance you displace the float and the real estate it had occupied before is retained. |
#33
| |||
| |||
|
|
2. When floated left, it will position itself to top,left (0,0) of its "container block". |
#34
| |||
| |||
|
|
Gus Richter <gusrichter (AT) netscape (DOT) net> wrote in news:WoOdnYR9Y7aBZWfanZ2dnUVZ_gKdnZ2d (AT) golden (DOT) net: 2. When floated left, it will position itself to top,left (0,0) of its "container block". http://www.w3.org/TR/CSS21/visuren.html#floats When floated left it will be shifted to the left until its outer edge touches the containing block edge or the outer edge of another float. If there is a line box the top of the floated box is aligned with the top of the current line box. This will usually not be the top of the container block. |
#35
| |||
| |||
|
|
dorayme wrote: I am inclined to actually use the phrase "containing block" where the context shows it to do a job of containing. |
|
You are having difficulty in accepting the container thing, so try asking yourself: "If the float positions itself to 0,0 of the container block, then what could be the container block?" |
#36
| |||
| |||
|
|
In article <ScudnU3ayMXRaGfanZ2dnUVZ_gadnZ2d (AT) golden (DOT) net>, Gus Richter <gusrichter (AT) netscape (DOT) net> wrote: Not sure if this will convince you away from the dark side ? |
|
This is because in the one instance you displace the float and the real estate it had occupied before is retained. I was not the least puzzled by the examples at the end. They were not offered as something to be explained but to make a point about terminology. |
#37
| |||
| |||
|
|
rf wrote: Gus Richter <gusrichter (AT) netscape (DOT) net> wrote in news:WoOdnYR9Y7aBZWfanZ2dnUVZ_gKdnZ2d (AT) golden (DOT) net: 2. When floated left, it will position itself to top,left (0,0) of its "container block". http://www.w3.org/TR/CSS21/visuren.html#floats When floated left it will be shifted to the left until its outer edge touches the containing block edge or the outer edge of another float. If there is a line box the top of the floated box is aligned with the top of the current line box. This will usually not be the top of the container block. Funny thing is that when I read it, it says: A floated box is shifted to the left or right until its outer edge touches the containing block edge or the outer edge of another float. If there's a line box, the top of the floated box is aligned with the top of the current line box. What makes you add the last sentence in your quote? |
#38
| |||
| |||
|
|
In the float rules you refer to, the idea of containment, as I have been thinking about it, refers to a parent in a particular set up (much like some of your examples with wrappers). You seem to favour the container word to refer to the following (html order) sibling after the float. |
#39
| |||
| |||
|
|
Gus Richter <gusrichter (AT) netscape (DOT) net> wrote in news:mtmdnc-aIeb5YmfanZ2dnUVZ_hadnZ2d (AT) golden (DOT) net: rf wrote: Gus Richter <gusrichter (AT) netscape (DOT) net> wrote in news:WoOdnYR9Y7aBZWfanZ2dnUVZ_gKdnZ2d (AT) golden (DOT) net: 2. When floated left, it will position itself to top,left (0,0) of its "container block". http://www.w3.org/TR/CSS21/visuren.html#floats When floated left it will be shifted to the left until its outer edge touches the containing block edge or the outer edge of another float. If there is a line box the top of the floated box is aligned with the top of the current line box. This will usually not be the top of the container block. Funny thing is that when I read it, it says: A floated box is shifted to the left or right until its outer edge touches the containing block edge or the outer edge of another float. If there's a line box, the top of the floated box is aligned with the top of the _current_ line box. What makes you add the last sentence in your quote? The quoted, or rather restated, text is incomplete and therefore misleading. I added that last sentence to clarify matters. body p a very long paragraph that causes lots of line boxes to be generated a very long paragraph that causes lots of line boxes to be generated a very long paragraph that causes lots of line boxes to be generated a very long paragraph that causes lots of line boxes to be generated a very long paragraph that causes lots of line boxes to be generated a very long paragraph that causes lots of line boxes to be generated a very long paragraph that causes lots of line boxes to be generated a very long paragraph that causes lots of line boxes to be generated a very long paragraph that causes lots of line boxes to be generated the last text before the image <img src=... style='float: left'> a bit more text /p /body There will be quite a number of line boxes before the image is encountered. The image will be floated to the left of the containing block but the top of the image will be aligned with the top of the line box that contains the text 'the last text before the image' or thereabouts, depending on how the text is wrapped. This is nowhere near the top of the containing box. If you follow the above link and then scroll down a bit you will find an illustration where a floated element overlaps two paragraphs. The caption is "A floating image obscures borders ..." Note that the top of the floated element is not at the top of the first paragraph. It is at the top of the second line block. Look closely at the text, looking for the (X). |
#40
| |||
| |||
|
|
In article <WoOdnYR9Y7aBZWfanZ2dnUVZ_gKdnZ2d (AT) golden (DOT) net>, Gus Richter <gusrichter (AT) netscape (DOT) net> wrote: dorayme wrote: I am inclined to actually use the phrase "containing block" where the context shows it to do a job of containing. In the float rules you refer to, the idea of containment, as I have been thinking about it, refers to a parent in a particular set up |
![]() |
| Thread Tools | |
| Display Modes | |
| |