[Home] [By Thread] [By Date] [Recent Entries]
At 2002-06-12 12:12 +0200, Gustaf Liljegren wrote:
1. How do I align a block to the bottom of a table-cell? Use display-align="after" for the cell ... see the example below. 2. I've noticed that some fonts are smaller than others. Maybe those smaller fonts have more space around them. I'd like to see the actual size of each glyph. My attempt to do this was to add an <fo:inline> with 'background-color' on each character. Here's the result: Two steps: (1) - only turn on the border for the character (by using an inline), not for the block (2) - optionally use line-height="1" to remove any leading on the line, though the leading may be useful for separation since the inline has prevented the leading from having the background colour. I've added this to the example below as well. I hope this helps. .................. Ken <table border="solid" border-collapse="collapse">
<table-column column-width="5cm"/>
<table-column column-width="5cm"/>
<table-column column-width="1cm"/>
<table-column column-width="1cm"/>
<table-column column-width="1cm"/>
<table-body>
<table-cell border="solid">
<block>
This is a cell with a long sentence in it.
</block>
</table-cell>
<table-cell display-align="after" border="solid">
<block>
This is short.
</block>
</table-cell>
<table-cell border="solid">
<block><inline background="cyan">X</inline></block>
</table-cell>
<table-cell border="solid">
<block line-height="1"><inline background="cyan">X</inline></block>
</table-cell>
<table-cell border="solid">
<block background="cyan">X</block>
</table-cell>
</table-body>
</table>
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-07-1 Practical Formatting Using XSLFO XSL/XML/DSSSL/SGML/OmniMark services, books (electronic, printed), articles, training (instructor-live,Internet-live,web/CD,licensed) Next public training: 2002-06-11,13,14,08-05,26,27,09-30,10-03 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



