Oliver Block wrote:
Hello everybody,
I wonder why a
<span style="float:right">some text</span>
might be displayed out of a surrounding div element. It is shifted to the
next line.
I thougt it is supposed to appear inside the surrounding div. There is
definetly enough space.
tia,
Oliver
Not true. You did not have sufficient content in the div. Without
commenting on your method, try this
<div>Here is a bunch of text<span
style="float:right;color:#f00;width:50px;">floated text</span> but some
text has been floated right that goes on and on that goes on and on that
goes on and on that goes on and on that goes on and on that goes on and
on that goes on and on that goes on and on that goes on and on that goes
on and on that goes on and on that goes on and on that goes on and on
that goes on and on that goes on and on that goes on and on that goes on
and on that goes on and on that goes on and on that goes on and on that
goes on and on that goes on and on that goes on and on that goes on and
on that goes on and on that goes on and on that goes on and on that goes
on and on
</div>
Now shift the <span> object to the start of the div content.
Louise