Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-24-2014, 08:16 PM   #1
Abull
Member
Abull began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
Lists are shifted to the right in ADE.

I've read the known ADE bugs sticky and the #3 cause doesn't exist in my case, and the workaround doesn't get rid of the problem. The padding or margin that ADE adds is about ten characters wide at the smallest font size and five charcters at the largest size in Desktop ADE 2.0 and 1.7.

Has any one else seen this problem and found a solution?

Is there a way to simulate a numbered list with a column of numbers on the left and corresponding boxes of justifed text to the right? If so, what would the html for it be?

Last edited by Abull; 03-25-2014 at 02:40 PM.
Abull is offline   Reply With Quote
Old 03-24-2014, 09:22 PM   #2
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Don't simulate lists. That's always the wrong solution.

Are you using any CSS to specify the padding on the ul and li tags? If not, do so, e.g.

Code:
<style type="text/css">
    ul,ol {
	padding-left: 2.5em;
    }
    li {
	padding-left: 0;
        text-indent: 0;
    }
</style>
dgatwood is offline   Reply With Quote
Advert
Old 03-24-2014, 10:14 PM   #3
Abull
Member
Abull began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
I added the paddding and indent to the style sheet, but the list is still shifted to the right.

When I copy only my style sheet and the html section from my original epub into a new epub in Sigil the list isn't shifted when it's opened in ADE. I'll have to add the other sections one at a time and see if the problem reappears.
Abull is offline   Reply With Quote
Old 03-25-2014, 06:08 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
If you are happening to use paragraph tags within the list, you could get an indent from the paragraph tag.
mrmikel is offline   Reply With Quote
Old 03-25-2014, 01:58 PM   #5
Abull
Member
Abull began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
Desktop ADE does seem to add a 40px left margin to lists. This is about 5 characters wide with the smallest font and zero characters wide with the largest font. Adding a 0 left margin to the style sheet works for unordered lists with no bullets, but moves the numbering of ordered lists off the page. The smallest margin that keeps the numbering of ordered lists is 36px, but then the list has a wide left margin in other viewers.

When I posted last night I was tired and got confused with trying to get rid of this default margin in part because of multiple list styles in my CSS. I was seeing a shift double the default margin width because I'd added padding in the CSS and then couldn't find it again to remove it. My apologies if I've caused any confusion.

I note, reading other threads, that ADE on other devices may behave differently with regard to the default margin given to lists.

Last edited by Abull; 03-25-2014 at 02:38 PM.
Abull is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-505 Bad screen (half shifted) FlowerOS Sony Reader 5 02-18-2013 01:31 PM
ADE not reading my validated epub Ordered Lists Dia435 ePub 2 10-13-2012 03:21 PM
Ordered lists and ADE dynabook Sigil 3 01-27-2011 04:53 AM
Continuing numbered lists (ol) in ADE EricDP ePub 13 09-07-2010 08:30 AM
Vade Mecum: Sentences shifted after updates chippyt Reading and Management 0 05-06-2005 10:58 AM


All times are GMT -4. The time now is 02:03 AM.


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