You are here: Re: OBJECT: size rendering « HTML « IT news, forums, messages
Re: OBJECT: size rendering

Posted by Hans Dietmar Jaeger on 11/15/05 18:03

Spartanicus wrote:
> Ergo when embedding HTML you should always specify a width and height
> for the viewport established by the object element via the width and
> height attributes on the object element. Since you can only specify a
> size in pixels that way, you could elect to also specify a width and/or
> height with CSS, in which case you have other units available.

Ok, thank you, that works fine and I think I got the point; I changed
the source code to:

<style type="text/css">object.test {height: 3em;width: 50%;}</style>
<object class="test" border="1" type="text/html"
data="object_text.html"></object>

Have a look at http://www.tcs.informatik.uni-muenchen.de/~hdjaeger/

AND NOW IT WORKS correct! WOW!

If you change the browsers font-size by CTRL-+ or CTRL-- the size of the
OBJECT-box is scaled properly!

That is excactly what I needed! Thanks a lot!

jagger

P.S.: Now I only have to adjust the top-/...-margins of the border to
fit my individual taste:-)
--
www.jaggger.de

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация