OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Re: qanda listings in html output


Hi,
I think this is more of a browser problem than an HTML coding problem.  Using <p> 
inside a table cell is commonly done, and should not create extra space at the top of 
the table cell.  Only Firefox pushes the qanda number down to the second line. 
Neither Internet Explorer or Chrome do that.  Does anyone know of any other browsers 
that have this problem?

In general, Firefox handles a <p> in a table cell correctly, as you can see from the 
second column entries which all have <p> and display at the top of the table cell. 
Firefox seems to have a problem with the empty named anchor tags just prior to the <p> 
in the numbering table cell.  If I delete the <a name> tags, then the numbering <p> 
formats at the top of its table cell.  Since emtpy <a> tags should take up no space, I 
don't think the <p> should trigger a line break there in Firefox. If I move the named 
anchor tags inside <p>, they also don't trigger the line break.

I don't see how to work around this problem with CSS.  You could customize the 
template with match="question" to move the anchor tags inside the <p>.  That seems to 
fix the problem in Firefox.  This change could also be rolled into the distribution, 
as it should not have any other side effects.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Tom Browder" <tom.browder@gmail.com>
To: "Docbook Apps Help list" <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, October 27, 2010 12:13 PM
Subject: [docbook-apps] Re: qanda listings in html output


On Wed, Oct 27, 2010 at 10:42, Tom Browder <tom.browder@gmail.com> wrote:
> I found why the weird spacing and have kludged a fix:
>
> In <db style sheets 1.75.2>/html/qandasets.xsl the label is put in a
> paragraph ("<p></p>") which causes the funny offset since each entry
> is a table row with two columns. I removed paragraph blocks from both
> cells for question and answer. That seemed to take care of the
> offset.

Even after David's pointer to Bob's book I still think the paragraph
label elements in html/qandssets is a bug.  Bob does say you can
customize the qandaset but one shouldn't have to do that for that
label problem IMHO.

Regards,

-Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]