|
Posted by Hans Dietmar Jaeger on 11/15/05 16:49
Hello again, you helped me out with the OBJECT-tag, thanks. But I can't
find anything about who the size of the OBJECT to be rendered is
calculated:-|
Ok, if the OBJECT is an image, it's it natural size (defined in the
header of the OBJECT). But now the OBJECT is a HTML-page; and this page
consist of javascript code to build the HTML-source!
I embedded an OBJECT with type text/html that consisted of only one
simple plain HTML code: <font color="#ff0000">hello world!</font> It ist
displayed correctly. But I do not gave an width/height attribute to the
OBJECT-tag:
<object border="1" type="text/html" data="object_text.html"></object>
border attribute only to see the size of the rendered object. And that
is much more than the natural size of the HTML code!
Ok, when the size cannot be calculated on-the-fly, I will give an
expicit width/height-attribute; but these attributes must be calculated
regarding the actual font size (height/width/style)! How can I do this?!
Perhaps the flexibility of the OBJECT-tag is not intendet to do those jobs.
Any comments/help?
Thank you,
jagger
--
www.jaggger.de
Navigation:
[Reply to this message]
|