Re: [css2xslfo-support] Regions
Brought to you by:
wdonne
From: <wer...@re...> - 2005-05-24 15:37:01
|
Andreas, For me it does appear, but right after the other text. All I did was declaring the XHTML namespace. See attachment. Regards, Werner. Andreas Jung wrote: > > > --On Dienstag, 24. Mai 2005 17:03 Uhr +0200 Werner Donné > <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="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="mybottom"> > This should go to the bottom > <span class="mark"/> > </div> > > <h1>Hello world</h1> > > <div class="copyrightnotice"> > labber labber..... > labber labber..... > </div> > > </body> > </html> > > -- Werner Donné -- Re BVBA Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |