Should div automatically flow to the clearing point?

Discussion in 'CSS' started by winterheat, Jun 19, 2007.

  1. #1
    I think the reason a div will not enclose a floated element is that, because the flow is just working its way some where, and so Div won't enclosed the "clear: both" area...

    (see post)
    http://forums.digitalpoint.com/showthread.php?t=370584

    I think most of the time, we want the div to enclose the "flow's clearing point"... most of the time, that is... with rare design use that we actually want to not to enclose... (for overlapping effect)...

    so how about in the next CSS definition, any div will automatically enclose floated elements, unless there is a declaraction in <div sytle="enclose: none ... " and the default value is "auto", which means it will enclose a floated element.
     
    winterheat, Jun 19, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    kk5st, Jun 19, 2007 IP
  3. briansol

    briansol Well-Known Member

    Messages:
    221
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #3
    briansol, Jun 19, 2007 IP