[css2xslfo-support] How to get the css float property working?
Brought to you by:
wdonne
From: Erik T. <er...@so...> - 2008-01-04 14:39:24
|
Hi, Accoding to the css2xslfo docs the CSS2 float propery is implemented. But somehow I just can't get working. If you render this [1]: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> /*<![CDATA[*/ img { float:right } /*]]>*/ </style> </head> <body> <p>In the paragraph below, we have added an image with style <b>float:right</b>. The result is that the image will float to the right in the paragraph.</p> <p><img src="logocss.gif" width="95" height="84" /> This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p> </body> </html> It does not show the image at all (you can download the image here: http://www.w3schools.com/css/logocss.gif ). But when you remove the 'float: right' propery the image appears again. How can I get the image to float to the right? I am using: java -jar fop-0.94/lib/css2fopnew1_5_2.jar Thanks in advance, Erik. [1] http://www.w3schools.com/css/tryit.asp?filename=trycss_float |