[css2xslfo-support] region style not selected, page names, margins
Brought to you by:
wdonne
From: Brad C. <bk...@mu...> - 2006-03-13 20:14:04
|
I found something odd with 1.3, I am thinking I'm doing something wrong. I have an xhtml document with embedded stylesheet. It works fine in Firefox. In part, I have this style: div.invoice_header { font-size:9pt; region: top; precedence: true; width:100%; height: 3in; } Then, in the body, I have this: <body> <div class="invoice_header" > <table style="table-layout:fixed;width:100%;"> <col width="1*" /> <col width="1*" /> (snipped) What happens is the div is not treated as a top region, instead it's put into the body flow. If I change the color in the stylesheet, the changed color is reflected correctly in the browser, but not in the postscript output from fop. So I think csstoxslfo isn't connecting the div class to the stylesheet. I used to have <table class="invoice_header"> and that worked ok. But when I changed from table to div, region activation of the div stopped working. To make this work, I have to do add a style statement to the div: style="region:top;height:3in" Am I doing something wrong? -- I am not sure what @page name to use.. I'm doing onsided output, so I have this in my embedded stylesheet: @page onesided { margin:1%; } What I really want to do is to reduce the margins on all pages. I also tried margin: 0.25in 0.25in 0.25in 0.25in But that had no effect either. How do I set the margins for all pages to be the same smaller size than the default? What page names *should* I be using to apply to "the default starting page". In the case of onesided, I guess I have first-onesided and onesided.. That it? -- I use table-layout:fixed;width:100% everywhere in my document, but I still get these complaints: INFO: table-layout="fixed" and width="auto", but auto-layout not supported => assuming width="100%" But width is already 100% on the table, maybe it's complaining about the width of the parent div? -- It seems that width units 'ex' is not allowed, but 'em' works. Is that a FOP limitation? or, is 'ex' an html -only thing? -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM or SKYPE: BKClements |