Sent by Peter Speltz on 19 September 2005 22:10
On 9/19/05, Gunlaug Sørtun [EMAIL-REMOVED]> wrote:
> Peter Speltz wrote:
>
> > Now for some reason when I float the *obj_links* right, both the
> > *obj_title* and *obj_links* jump out of the container div.
>
> > See www.cafes.net/peter/css/snapshot4.png
>
> > I do not understand this.
>
> Hard to debug an image, but it looks like 'standard-compliant behavior':
> "default; containers won't expand to contain floats."
>
You are right. After re reading, this is seems to fall under the
domain of *bottom edges being deliberatly left out of CSS
specification*. Since there is no other content besides floats in the
parent div, the floats appear to jump out of it. CSS2.1 specifies
that a floated parent has to expand to contain floated children so I
could float the parent (obj_bar). However I actually like the the
thin line better that the thick backgound bar so I got lucky here. :)
Thanks all for your help.
Thanks for the link too,
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/