Re: [css2xslfo-support] Padding for top and bottom regions
Brought to you by:
wdonne
From: USHAKOV, S. <us...@in...> - 2011-09-18 09:21:36
|
Hi Werner, preparing an example helped bringing thoughts in order quite a lot :) I was wrong partially, as nothing looks wrong about top regions. Any space required for them is sufficiently controlled with their "height" attribute. Still there seems to be a problem with bottom regions. You can control their height. You can apply borders. Paddings inside the borders behave as expected. But if you wish to have a non-zero top margin to separate the top border from the body region, then it seems to be ignored. Please find a sample attached. I have declared "margin-top" for the bottom region big enough, but the PDF that results from the generated FO shows no substantial gap between the body and the border... My best regards, Sergey ----- Original Message ----- From: "Werner Donné" <wer...@pi...> To: "USHAKOV, Sergey" <us...@in...> Cc: <css...@li...> Sent: Friday, September 16, 2011 11:35 AM Subject: Re: [css2xslfo-support] Padding for top and bottom regions Hi Sergey, The top and bottom regions have a fixed height and always abut on the body region. This means that whatever you put in them should fit this height. I would expect padding to work also for top and bottom regions. Perhaps you can send me the example? Best regards, Werner. On 16 Sep 2011, at 06:48, USHAKOV, Sergey wrote: > Hi Werner, > > I'm going ahead with my re-exploration of CSSToXSLFO features :) > > My next stop was at borders for top and bottom regions. My idea was to > have > these regions separated from the body region by visible borders with > controllable margins and paddings. My idea was also to have all these > margins/borders/paddings belong to appropriate top/bottom regions rather > than to the body region for better flexibility. > > Everything is perfect wth margins and borders. But I did not succeed with > paddings. My impression is that CSS attributes for padding are not honored > for top and bottom regions, at least at joints with the body region. > > My workaround was adding extra empty 'div' elements to do the job for > paddings. But cannot say this looks elegant... > > Any ideas? > > Thanks in advance and best regards, > Sergey > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support -- http://www.pincette.biz/ Handling your documents with care, wherever you are. |