[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re:help: drawing images in a k
From:       Simon Hausmann <tronical () gmx ! net>
Date:       1998-10-22 16:22:13
[Download RAW message or body]


On Thu, 22 Oct 1998, bastian wrote:
>On Wed, 21 Oct 1998, Simon Hausmann wrote:
>
>|I actually need to display images within the text-document (it's really just
>|like using an img-tag but with one big difference: I need to be able to
>define
>|the exact coordinates of the image.
>
>From what I understand you need a "floating" image (the text should float
>around
>the image) in the middle of some text. Just putting an image on a fixed
>position
>wouldn't work because the HTML-layout wouldn't know to lay the text around
>the
>image. KHTMLW does support floating images but only left or right alligned.
>I don't know if there is already a HTML standard which allows floating images
>at other places as well. I don't expect this in KHTMLW any time soon, since
>it will be a royal pain in the ass to implement.
Yeah, you've found the correct expression of what I need: Text floating around
(both sides of) an image.
But afaik the only possible solution in "plain" HTML is using style sheets,
isn't it?

>You could try to insert the image with <IMG ... align=left> (or right) and
>see
>if it remotely satisfies what you want to do. 

I hope in most cases this solution will be ok.
But there's something I forgot to mention (and I don't know if this gives
you/anyone else an idea of a solution?) : 
The floating of the text around the image won't have to be done by the htmlw,
because there's already a "hole" in the text (meaning: spaces (or somthing like
&nbsp; )) . Thus meaning the (html) text is already sort of correctly formatted
and the widget doesn't have to take care about the text itself (and
therefore doesn't need to make sure the text has to float around the img in a
nice way) .
I already though of a solution like creating some sort of sprite-layer
transparently over the html-widget and putting the images at the corresponding
"holes" (which are already automatically there) , so the html-widget doesn't
have to do anything special in regard of the image handling. But the problem
is: I don't have any idea how to make this transparent layer/widget...

>Cheers,
>Waldo Bastian

Regards,
 Simon

--
Simon Hausmann - Tronical^Colorfast - <tronical@gmx.net> - IRCNet #colorfast

Never trust an operating system you don't have sources for - Use Linux

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic