![]() | |
![]() |
| | Thread Tools | Display Modes |
#61
| |||
| |||
|
|
In article <27adndj4i_Ugp2HanZ2dnUVZ_rrinZ2d (AT) golden (DOT) net>, Gus Richter <gusrichter (AT) netscape (DOT) net> wrote: I note that on alt.html dorayme is responding to a question "DIV - dynamic height" wherein she gives another variable on her referenced page: http://netweaver.com.au/floatHouse/page10.html That page should be included in this thread as well. The terminology of nuclear family should be removed, however, and replaced with "containg block" and "floats". IMHO of course. I am not sure about this Gus, it is really not quite specific enough to be useful on the phenomenon you have raised. (btw, I accept now that there are reasonable explanations for what goes on). |
|
I was trying to say that it was counter-intuitive because in the markup/source the normal would be to have the float come _second_ as: div id="shrink" div id="float">Some text and more</div Some text and some more to get a few more lines. /div when compared to where the float comes _first_: div id="float">Some text and more</div div id="shrink">Some text and some more to get a few more lines.</div |
#62
| |||
| |||
|
|
Ben C wrote: On 2008-04-07, Gus Richter <gusrichter (AT) netscape (DOT) net> wrote: [...] In my examples, "wrapper" and "containing block" are two different things. The "wrapper" is simply used to reposition the segment pairs. In your examples in the link I mention above, you use headings to accomplish this w/o wrappers. The "containing block" is each one of the yellow boxes in every one of your examples on the page linked above (yellow boxes in my examples as well). It is a bit counter-intuitive in that normally a container comes first in the markup, but in the case with floats, the "container block" comes _after_ the float. No the containing block for a float is always above it in the document tree. I was trying to say that it was counter-intuitive because in the markup/source the normal would be to have the float come _second_ as: div id="shrink" div id="float">Some text and more</div Some text and some more to get a few more lines. /div when compared to where the float comes _first_: div id="float">Some text and more</div div id="shrink">Some text and some more to get a few more lines.</div |
#63
| |||
| |||
|
|
On 2008-04-10, Gus Richter <gusrichter (AT) netscape (DOT) net> wrote: Ben C wrote: On 2008-04-07, Gus Richter <gusrichter (AT) netscape (DOT) net> wrote: [...] In my examples, "wrapper" and "containing block" are two different things. The "wrapper" is simply used to reposition the segment pairs. In your examples in the link I mention above, you use headings to accomplish this w/o wrappers. The "containing block" is each one of the yellow boxes in every one of your examples on the page linked above (yellow boxes in my examples as well). It is a bit counter-intuitive in that normally a container comes first in the markup, but in the case with floats, the "container block" comes _after_ the float. No the containing block for a float is always above it in the document tree. I was trying to say that it was counter-intuitive because in the markup/source the normal would be to have the float come _second_ as: div id="shrink" div id="float">Some text and more</div Some text and some more to get a few more lines. /div when compared to where the float comes _first_: div id="float">Some text and more</div div id="shrink">Some text and some more to get a few more lines.</div OK, but in these two examples the containing block for the float is different. |
|
In the first one it's #shrink, in the second it's BODY or whatever's immediately outside #float and #shrink. The text in #shrink flows around the float, but that doesn't mean it shares the float's containing block. Floats often overflow their containers vertically and any inlines that are in the way have to get out of the way, regardless of whose containing block they are in. |
![]() |
| Thread Tools | |
| Display Modes | |
| |