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] epub heading levels and centered images


Hello Bob,

looks like something else is amiss on my side....

I tried this and other variants (after googling CSS table centering) and I
still can not get images centered.

<table style="margin: 0 auto; width: 80%; cellpadding: 0; cellspacing: 0;">
Does not change anything here.

puzzled
afx

on 06.11.2012 01:30 Bob Stayton said the following:
> Well, this is one of those things I do not understand about CSS. Apparently,
> one centers a table in CSS not with text-align, but with this style:
> 
> margin: 0 auto;
> 
> If you add that to the style attribute on the table, the table (and image)
> will be centered.  The table is used here to create a viewport for a
> centered and scaled image.  Now I need to figure out how to incorporate this
> extra style information into the stylesheet.
> 
> Bob Stayton
> Sagehill Enterprises
> bobs@sagehill.net
> 
> --------------------------------------------------
> From: "Andreas F.X. Siegert" <afx@afximages.com>
> Sent: Monday, November 05, 2012 11:08 AM
> To: <docbook-apps@lists.oasis-open.org>
> Subject: Re: [docbook-apps] epub heading levels and centered images
> 
>> on 05.11.2012 04:52 Bob Stayton said the following:
>>> Hi Andreas,
>>> You seem to have downloaded the "doc" archive, not the xsl archive itself.
>>> You want docbook-xsl-1.77.1.zip.
>>
>> Ahh, thanks for clearing that up.
>>
>> Here is what I get running against chunk.xsl when I run it after installing
>> the docbook update.
>>
>> <div class="figure" id="FigCMOverview">
>>  <div class="figure-title">Figure 3.1. AfterShot color management
>>              overview</div>
>>  <div class="figure-contents">
>>    <div style="text-align: center; " class="mediaobject">
>>      <table style="border: 0; width: 80%; cellpadding: 0; cellspacing: 0;">
>>        <tr>
>>          <td style="text-align: center; ">
>>            <img style="text-align: middle; width: 100%; "
>>                 src="images/CM-Overview.png"
>>                 alt="AfterShot color management overview"/>
>>          </td>
>>        </tr>
>>      </table>
>>    </div>
>>  </div>
>> </div>
>>
>> Which is consistent with what I get using my customization layer.
>> Still no centered image ;-(
>>
>> I've put a test setup at http://afximages.com/tmp/epub-test.tgz if you would
>> like to have a look.
>>
>>
>> thx
>> afx
>>
>>
>> -- 
>> http://afximages.com/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>>
>>
>>
> 


-- 
http://afximages.com/


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