Re: FO: block, padding and border
"G. Ken Holman" wrote: > > Of course, the borders should be aligned. How would you do > >that? > By using space-before= and space-after= for top and bottom, and > start-indent= and end-indent= for left and right. Thanks for your detailed answer, Ken. Unfortunately, when I try the following: <fo:block space-before="5pt" start-indent="5pt" border="solid 0.5pt"> Bla bla... </fo:block> I get the opposite result: the border is moved to the inside of the block. Thanks to Vasu, I found the following that solves my problem: <fo:block padding-top="5pt" border="solid 0.5pt"> <fo:inline padding-left="5pt">Bla bla...</fo:inline> </fo:block> With this, the border around the block is still aligned with borders around tables, and the text is 5pt away from the border. I am not sure this is the right way to go, but it seems clean enough. I use FOP 0.95, not sure this has something to do... Regards, -- Florent Georges http://www.fgeorges.org/
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format