← Prev in month ← Prev in thread

html5 align image right

From
Peter Fleck <>
Date
2013-09-05T11:15:54+00:00
ID
Thread
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:

    

    <inlinemediaobject>

        <imageobject>

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

        </imageobject>

      </inlinemediaobject>

      

      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?

      

      Peter
← Prev in month ← Prev in thread