Previous Message
Next Message

Floating divs moved out of parent. Puzzzled???

Sent by Gunlaug_Sørtun on 19 September 2005 20:08

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

> 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:

css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: