Re: [css2xslfo-support] Regions
Brought to you by:
wdonne
From: Andreas J. <li...@an...> - 2005-05-24 15:26:18
|
--On Dienstag, 24. Mai 2005 17:03 Uhr +0200 Werner Donn=E9=20 <wer...@re...> wrote: > Andreas, > > The page property on div.mybottom is set to "left" and you have only > one page, which is at the right. If you remove the page property the > bottom region will appear on both sides. If you want, for example, > a different alignment for left and right pages, you can make two > mybottoms and set the page property accordingly. Ok. Now I am trying to add dynamic text from the H1 tag to the bottom (taken from the manual). However the text from H1 tag does not show up. Anything else I am missing? Andreas <html> <head> <style type=3D"text/css"> @page { margin-top: 35mm; } @page :left { margin-left: 15mm; margin-right: 35mm; } @page :right { margin-left: 35mm; margin-right: 15mm; } @media print { div.mybottom { region: bottom; height: 2cm; display: none; } div.mybottom > span.mark:before { content: string(mark); } } h1 { string-set: mark contents; } </style> </head> <body> <div class=3D"mybottom"> This should go to the bottom <span class=3D"mark"/> </div> <h1>Hello world</h1> <div class=3D"copyrightnotice"> labber labber..... labber labber..... </div> </body> </html> |