1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<RefEntry id="X24table-widthX24X29">
<!-- This file is generated automatically from the DSSSL source. -->
<!-- Do not edit this file! -->
<?html-filename table-width.html>
<RefMeta>
<RefEntryTitle>$table-width$</RefEntryTitle>
<RefMiscInfo Role="file">dbparam.dsl</RefMiscInfo>
</RefMeta>
<RefNameDiv>
<RefName>$table-width$</RefName>
<RefPurpose>Calculate table width</RefPurpose>
</RefNameDiv>
<RefSynopsisDiv><Title>Synopsis</Title>
<Synopsis>
($table-width$)
</Synopsis>
</RefSynopsisDiv>
<RefSect1><Title>Description</Title>
<para>
This function is called to calculate the width of tables that should
theoretically be "100%" wide. Unfortunately, in HTML, a 100% width
table in a list hangs off the right side of the browser window. (Who's
mistake was that!). So this function provides a way to massage
the width appropriately.
</para>
<para>
This version is fairly dumb.</para>
</RefSect1>
<RefSect1><Title>Source Code</Title>
<ProgramListing>
(define ($table-width$)
;; Calculate table width
(if (has-ancestor-member? (current-node) '("LISTITEM"))
"90%"
"100%"))
</ProgramListing>
</RefSect1>
</RefEntry>
|