Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-26-2014, 07:53 PM   #1
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
Alter the indentation of ToC

Hi there,

the automatically generated ToC is a bit too spaced out for my liking (ePub). Where are the indents defined?

This is a bit of the code:

Code:
<h2 class="calibre2">Indice</h2>

  <ul class="level">

    <li class="calibre3"><a href="Ringraziamenti_001.html" class="calibre4 pcalibre">Ringraziamenti</a></li>

    <li class="calibre3"><a href="Introduzione_003.html" class="calibre4 pcalibre">Introduzione</a>

      <ul class="level1">
        <li class="calibre3"><a href="Introduzione_003.html#id_RefHeading__54440_203786428" class="calibre4 pcalibre">Bits</a></li>
        <li class="calibre3"><a href="Introduzione_003.html#id_RefHeading__54442_203786428" class="calibre4 pcalibre">Things</a></li>
        <li class="calibre3"><a href="Introduzione_003.html#id_RefHeading__54444_203786428" class="calibre4 pcalibre">somehow</a></li>
        <li class="calibre3"><a href="Introduzione_003.html#id_RefHeading__54446_203786428" class="calibre4 pcalibre">Something</a></li>
      </ul>

    </li>

    <li class="calibre3"><a href="Cap_1_titolo_004.html" class="calibre4 pcalibre">blah blah</a>
...
...
"calibre3" is the only thing with some left padding defined. So I removed that and now the ToC looks better. However I would like to reduce indents between levels.
In the stylesheet there is nothing obvious, so it isn't something like "padding", or at least it is not there.

Any idea of where I cold look?

Thanks

Last edited by Arkadian; 09-26-2014 at 07:56 PM.
Arkadian is offline   Reply With Quote
Old 09-26-2014, 09:52 PM   #2
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
You might be able to define top and bottom margins for li and ul in the stylesheet.
mrmikel is offline   Reply With Quote
Old 09-27-2014, 05:14 AM   #3
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
But I want to decrease only the left margin/padding/spacing/whatever... It must be defined somewhere... how does it know how much to indent by otherwise?

Last edited by Arkadian; 09-27-2014 at 05:40 AM.
Arkadian is offline   Reply With Quote
Old 09-27-2014, 06:52 AM   #4
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Open the book in the editor, go to view, tick live css, place the cursor where you are interested in and look in the live css box at the lower right of your screen. This will tell what css is active at this point and where it is from. This should allow you to track it down.

Padding-left is valid for styling lists in css. Check out w3schools.com/css for more possibilities.
mrmikel is offline   Reply With Quote
Old 09-27-2014, 12:41 PM   #5
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
Checking the live CSS was the first thing I did, but there is no evidence of a left margin/padding. They are all set to zero (or so they seem). I have lots of margin-top/bottom and some to the right, but none to the left...
Arkadian is offline   Reply With Quote
Old 09-27-2014, 02:01 PM   #6
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
The device or reading program may be imposing its own idea of how it should be. You can always change to a different reading program, but you are pretty much stuck with what the device wants to do and progress in updating and so on is slow in most devices.

Lists are kind of a problem for some readers. You can always re-do it with paragraphs, etc and get back more control that way.
mrmikel is offline   Reply With Quote
Old 09-28-2014, 12:24 AM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by mrmikel View Post
The device or reading program may be imposing its own idea of how it should be. You can always change to a different reading program, but you are pretty much stuck with what the device wants to do and progress in updating and so on is slow in most devices.
Devices will usually have sane (or not-so-sane) defaults, but assuming you explicitly set the padding/margin, the device should respect that.

Some apps are meant for flatly overriding and ignoring built-in CSS, but that is a different matter.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Change Paragraph Indentation Acharn ePub 5 01-31-2013 12:16 AM
How do you alter the line spacing? Lynx-lynx Sony Reader 3 12-12-2012 03:55 AM
[Suggestion] Change indentation to one letter per indentation level. John Peterson Development 1 10-22-2012 02:05 PM
Preserving Indentation zaph0d Conversion 5 05-30-2011 04:41 PM
Can't alter 'Now Reading' List shelmed Kobo Reader 7 08-24-2010 07:36 AM


All times are GMT -4. The time now is 02:04 PM.


MobileRead.com is a privately owned, operated and funded community.