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


Thanks Bob,

on 16.10.2012 23:14 Bob Stayton said the following:
> Chapters and other children of book should already be <h1> in epub3.  Is
> your chapter inside a part element, by any chance?  I see now that that
> would make it an h2.
That hint did it. Got my headings right now.

> Regarding centering of figures, this works for me:
> 
> div.figure {
>  text-align: center;
> }
> 
> If you have already tried something like that, I would suggest you look at
> the .xhtml files with a browser to see if it is working before being
> compiled into an epub.  If your CSS works there, then try using different
> epub readers, as their support for CSS varies.

This drives me nuts...
Here is what I currently get in the xhtml files:

<div class="figure">
  <a id="FigCMTunnel"/>
  <div class="figure-contents">
    <div style="align: center; " class="mediaobject">
      <table style="border: 0; border-spacing: 0; padding: 0; width: 80%; ">
        <tr>
          <td style="align: center; ">
            <img style="align: middle; width: 100%; "
                 src="images/CM-Tunnel.png"
                 alt="The gamut pipe"/>
          </td>
        </tr>
      </table>
    </div>
  </div>
  <div class="figure-title">Figure 3.3. The gamut pipe</div>
</div>

cheers
afx

> 
> Bob Stayton
> Sagehill Enterprises
> bobs@sagehill.net
> 
> --------------------------------------------------
> From: "Andreas F.X. Siegert" <afx@afximages.com>
> Sent: Tuesday, October 16, 2012 12:24 PM
> To: <docbook-apps@lists.oasis-open.org>
> Subject: [docbook-apps] epub heading levels and centered images
> 
>> Hi,
>>
>> I am still struggling with my epup3 conversion.
>>
>> How do I get heading levels that are really visually different?
>> Looks like for chapters and the first section level I get
>> h2 class title and then below I get h3 class title.
>>
>> But I can not even visually address them in the CSS....
>> I'd really love to have proper h1, h2, h3, .. with working CSS.
>>
>> Here is what I see at chapter level:
>>
>> <body>
>>  <section class="chapter" title="2. First Steps" epub:type="chapter"
>> id="FirstSteps">
>>    <div class="titlepage">
>>      <div>
>>        <div> <h2 class="title">2. First Steps</h2> </div>
>>      </div>
>>    </div>
>> ...
>>
>> Here is what I see at sec level:
>>
>> <body>
>>  <div class="sect1" title="Preferences">
>>    <div class="titlepage">
>>      <div>
>>        <div><h2 class="title" style="clear: both"
>> id="Preferences">Preferences</h2></div>
>>      </div>
>>    </div>
>>  ...
>>
>> And then at at sect2:
>> <div class="sect2" title="General Preferences">
>>  <div class="titlepage">
>>    <div>
>>      <div><h3 class="title" id="PreferencesGeneral">General Preferences</h3>
>>    </div>
>>  </div>
>> </div>
>>
>>
>> And no matter what I try for css, my figures are never centered, but always
>> left aligned.
>> I only can get the caption to center.
>>
>> cheers
>> 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]