css2 float/text flow selection question.

Hello all!

I'm not sure how relevant that is
(since I do not know if any possible solution
has to do with CSS), but here is my problem.

I have an XML file and use XSL-T to make
a presentation using XHTML+CSS2+JavaScript.
When I have an included object that is less
that half the screen size it should be rendered
as a right-aligned float with text on the sides.
If it is wider it should be a centered float witout
any text on the sides.

I'm trying to find a way to get information about the
dimentions of the enclosing box of the object
(that can be image, text, applet, whatever) without
actually rendering it (since I will have to know
the dimentsions before deciding where to put it
in the output document).

Any help???

Thanks in advance.
Mike.

Received on Monday, 28 October 2002 08:17:35 UTC