Re: [css2xslfo-support] [css2xslfo] margin-top, margin-bottom not acknowledged
Brought to you by:
wdonne
From: <wer...@re...> - 2006-03-06 09:38:46
|
Hi Andreas, I tried it with version 1.0 as well as 1.3 and the margin is there. Set it to zero to see the difference. It is not part of the content rectangle however, which is why the background doesn't reach that far. If that is what you want you should use padding instead of margin. Best regards, Werner. Andreas Jung wrote: > The following code should place "text goes here" inside a grey box > which is seperated from the upper and lower <p> by 2em. However the margin > of 2em is only visible for left and right bottom. The DIV itself is > directly > placed under/over the <p> without additional vertical space. Is this a > bug or a feature? > > Andreas > > > <?xml version="1.0"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> > <head> > <style type="text/css"> > /* This is the main stylesheet for all export actions through XSL-FO. > DON'T TOUCH THIS SCRIPT UNLESS YOU KNOW WHAT YOU ARE REALLY DOING!!!! > */ > > div.outline { > margin: 2em 2em 2em 2em; > background: #eeeeee; > } > > </style> > > <title>Dokument HI1383992</title> > </head> > <body> > > <p>hello world</p> > > <div class="outline"> > text goes here > </div> > <p>hello world</p> > > > </body> > </htm > l> -- Werner Donné -- Re BVBA Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |