docbook-apps

  • 1.  Centering Figures in Html With CSS: No Luck!

    Posted 07-07-2010 15:48
    I have been able to center my figures in pdf successfully using Bob
    Stayton's advice in his book. However, I can't yet get my css style
    sheet to center the html output.

    I have my figures in DocBook in a chunk like this:



    <mediaobject>
    <imageobject role='html'>
    <imagedata
    width='4.5in'
    fileref="./images/dmPlot.png"/>
    </imageobject>
    <imageobject role='fo'>
    <imagedata
    width='4.5in'
    fileref="./images/dmPlot.png"/>
    </imageobject>
    </mediaobject>


    In my css file I have tried these:

    div.mediaobject {
    align: center;
    }
    div.mediaobject {
    text-align: center;
    }

    Neither work. But if I add in my fo file in the mediaobject block
    attributes "align='center'", the figure centers nicely.

    I have tried to find where DocBook does the translation from css to fo
    so I can intervene ("customize") but haven't had much luck.

    What am I doing wrong?

    Thanks.

    -Tom

    Thomas M. Browder, Jr.
    Niceville, Florida
    USA



  • 2.  RE: [docbook-apps] Centering Figures in Html With CSS: No Luck!

    Posted 07-08-2010 19:21
    |


  • 3.  Re: [docbook-apps] Centering Figures in Html With CSS: No Luck!

    Posted 07-08-2010 20:02
    On Thu, Jul 8, 2010 at 14:20, Mauritz Jeanson <mj@johanneberg.com> wrote:
    > |  


  • 4.  RE: [docbook-apps] Centering Figures in Html With CSS: No Luck!

    Posted 07-08-2010 20:29
    |


  • 5.  Re: [docbook-apps] Centering Figures in Html With CSS: No Luck!

    Posted 07-08-2010 21:11
    On Thu, Jul 8, 2010 at 15:29, Mauritz Jeanson <mj@johanneberg.com> wrote:
    ...
    > |  Do you have a pointer to any other css tricks for firefox?
    ...
    > https://developer.mozilla.org/en/CSS

    Thanks, Mauritz.

    -Tom