Next in thread → Next in month →

Re: [docbook-apps] variablelist.as.table

From
Bob Stayton <>
Date
2005-05-16T06:14:14+00:00
ID
01b701c559de$5cade840$6400a8c0@toshiro
Thread
Re: [docbook-apps] variablelist.as.table
<col align="left" valign="top"> should work in all browsers.  What browser
are you using.  It does work in IE6, but it doesn't in Windows Firefox,
which displays with valign="middle".  That's got to be a bug in Firefox, no?

There is a CSS for valign:

td { vertical-align: top; }

And that does work in Firefox.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Doug du Boulay" <>
To: <>
Sent: Saturday, May 14, 2005 12:20 AM
Subject: [docbook-apps] variablelist.as.table


>
> In docbook-xsl-1.66.0/html/lists.xsl/<xsl:template match="variablelist">
> and working with  variablelist.as.table set to  1
> there is a section of code:
>
>           <col align="left" valign="top">
>             <xsl:if test="$term-width != ''">
>               <xsl:attribute name="width">
>                 <xsl:value-of select="$term-width"/>
>               </xsl:attribute>
>             </xsl:if>
>           </col>
>           <tbody>
>             <xsl:apply-templates mode="varlist-table"
>               select="varlistentry
>                       |comment()[preceding-sibling::varlistentry]
>                       |processing-instruction()
>                       |[preceding-sibling::varlistentry]"/>
>           </tbody>
>
> I think the <col> attribute valign="top" may be misplaced and would
> actually be better positioned as a <tbody> attribute inherited by the
> table rows and cells.
>
> As it is, the <term>s are vertically centred, so if you have long wrapping
> <listitem>s its difficult to identify where one <varlistentry> starts and
> the
> previous one finishes. With valign="top" it would be obvious.
>
> I was a bit surprised that CSS doesn't seem to provide a configuration for
> valign of a table cell body. Maybe I missed something ?
>
> Thanks
> Doug
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →