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: html5 align image right

Hi all,

Sorry if I'm doing something silly here.

I have an inline image which I want right aligned in the html 5 output (I'm using Docbook 5.1 Article).

Here's my docbook:

    <imagedata fileref="http://....jpg" contentwidth="200" align="right" format="jpg"></imagedata>

With Oxygen it works fine producing this output:

<p><span class="inlinemediaobject"><img src="" class="moz-txt-link-rfc2396E" href="http://....jpg">"http://....jpg" align="right" width="200"/></span>Some Text</p>

Though it uses align rather than css.

I prefer using xsltproc and am using docbook-xsl-ns-1.78.1 stylesheets.

The same docbook code as above produces the following:

<p><span class="inlinemediaobject"><img style="text-align: right; " src="" class="moz-txt-link-rfc2396E" href="http://....jpg">"http://....jpg" width="200"/></span>Some Text</p>

However the image is not being aligned to the right. Am I doing something wrong?


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