Re: [css2xslfo-support] How to get the css float property working?
Brought to you by:
wdonne
From: <wer...@re...> - 2008-01-04 15:34:47
|
Hi Erik, Floating is not yet supported in FOP. I have also tried it with another XSL-FO processor and then it works fine. Best regards, Werner. Erik Terpstra wrote: > 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 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > -- Werner Donné -- Re http://www.pincette.biz Engelbeekstraat 8 http://www.re.be BE-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |