"Ahmed K" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
a24usv$[EMAIL PROTECTED]">news:a24usv$[EMAIL PROTECTED]...
> ok HERE is my test case:
>
> <html>
>  </body>
>   <span style="width:200px;background-color:yellow">
>  Some text
>  <img src="arrow.gif" style="position:relative;float:right;">
>   </span>
>  </body>
> </html>
>
> try it!, i don't understand why the IMG isn't on the same line as the
text.

Move the <img> before the text instead of having it after it.

> in mozilla (by the way) the img is at the far end of the window and is not
> at the 200px limit of the span. (is that normal.)

A span is actually not allowed here. You should have a <p> surrounding the
text, not a span.

And float is _supposed_ to put it at the very right.

<html>
 <body>
 <img src="twitch.gif"
style="padding-left:180px;position:relative;float:left;">
 <p style="width:200px;background-color:yellow">
  Some text
   </p>
 </body>
</html>

Now only problem left is the vertical gap, dunno how that got in.



Reply via email to