AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/SVG/MathML Conformance

XSL-FO

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  The side float inserted in in-line is not arranged at the position of the same line as the anchor. A float and the next line are horizontally arranged. Why? [No.2005090901]
A. 

Your FO is as follows:

<fo:block>Content-1 
<fo:float float="end"><fo:block>Float object</fo:block></fo:float>
</fo:block>

In this case, the next line of "Content-1" and "Float object" are horizontally arranged. The start-edge in the vertical direction of float is a position of its line, if there is an anchor in the line start. If other, it is a position of the next line. The reason is that the position is decided in the flow processing of the line in order of "text before float", "float object", and "text after float".

If you change as follows, they are horizontally arranged in the same line.

<fo:block>
<fo:float float="end"><fo:block>Float object</fo:block></fo:float>
Content-1 </fo:block>

Moreover, if you see following HTML+CSS with IE, it can be confirmed that it is a similar layout.

<div>
   The quick brown fox jumps over the lazy dog.
   <div style="float:right; width:2cm; background: yellow">Here is float</div>
</div>

Copyright © 1999-2011 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.