Previous Message
Next Message

Floating divs moved out of parent. Puzzzled???

Sent by Gunlaug_Sørtun on 19 September 2005 21:09


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."

Try adding this at the bottom of your style-sheet:

@media screen {
div.obj_bar {
overflow: hidden;
_height: 0;
_overflow: visible;
}
}
....and see if that'll prevent the "jumping".
The "back and forth" is to make IE/win behave, and the @media rule is
preventing IE/Mac from picking up any of it.

That and more alternatives for 'containing floats' here:
<http://www.gunlaug.no/contents/wd_example_01.html#ex2>

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
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/
Previous Message
Next Message

Message thread: