Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-28-2021, 09:24 AM   #16
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,784
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Bigo2 View Post
RbnJrg - perfect and not complicated! I'm going to play with this...

Thank you very much!
You are welcome
RbnJrg is offline   Reply With Quote
Old 11-28-2021, 08:11 PM   #17
Bigo2
Zealot
Bigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchfork
 
Posts: 130
Karma: 48786
Join Date: Oct 2010
Location: Australia - Adelaide
Device: Kindle3
Thank you everybody for helping me with a fancier numbered list.
Regarding the way I tried to do it - using a negative top margin for sending the text up to align it with the number - I would like to know WHY it cannot be done?
I tried using the same font for the number line as well as the text line and the same line-height and the font-size, and I set everything in px. It did not help. Everything is ususlly OK in Sigil and aslo in Calibre Ebook viewer, but not in Kindle...
Why would it shift out of alignment?
How come there is no solution?

Last edited by Bigo2; 11-28-2021 at 08:24 PM.
Bigo2 is offline   Reply With Quote
Advert
Old 11-29-2021, 08:21 AM   #18
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,784
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Bigo2 View Post
Thank you everybody for helping me with a fancier numbered list.
Regarding the way I tried to do it - using a negative top margin for sending the text up to align it with the number - I would like to know WHY it cannot be done?
I tried using the same font for the number line as well as the text line and the same line-height and the font-size, and I set everything in px. It did not help. Everything is ususlly OK in Sigil and aslo in Calibre Ebook viewer, but not in Kindle...
Why would it shift out of alignment?
How come there is no solution?
The method I posted IS the solution, if you want something for Kindle (not for KF7). Why don't you want to use ordered list or inlined-blocked (although with this last aproximation, the font-size can be an issue)?

By the way, if you want something for Kindle should post in that forum.
RbnJrg is offline   Reply With Quote
Old 11-29-2021, 11:18 AM   #19
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 316
Karma: 3200000
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Quote:
Originally Posted by Bigo2 View Post
Thank you everybody for helping me with a fancier numbered list.
Regarding the way I tried to do it - using a negative top margin for sending the text up to align it with the number - I would like to know WHY it cannot be done?
I tried using the same font for the number line as well as the text line and the same line-height and the font-size, and I set everything in px. It did not help. Everything is ususlly OK in Sigil and aslo in Calibre Ebook viewer, but not in Kindle...
Why would it shift out of alignment?
How come there is no solution?
There were several problems in your original attempt. Using a fixed value like pixels does not work, because line-height can vary in ways you cannot control. It assumes the gap you’re filling is exactly 18px tall, but that won’t always be the case.

Also, <dd> is not correct semantics (course, nor is <p>). That <dd> belongs in a <dl>, paired with a <dt>. From a visual perspective, it may inherit some other styling for that element that you didn’t intend. Overall I would say it was kind of a very cumbersome way to try to build something that (imo) hasn’t got much benefit. And generally this sort of reshuffling of block-level elements via negative margin values and the like are risky and unreliable in general.

Last edited by phillipgessert; 11-29-2021 at 12:43 PM.
phillipgessert is offline   Reply With Quote
Old 11-29-2021, 03:24 PM   #20
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Bigo2 View Post
Thank you everybody for helping me with a fancier numbered list.
Regarding the way I tried to do it - using a negative top margin for sending the text up to align it with the number - I would like to know WHY it cannot be done?
I tried using the same font for the number line as well as the text line and the same line-height and the font-size, and I set everything in px. It did not help. Everything is ususlly OK in Sigil and aslo in Calibre Ebook viewer, but not in Kindle...
Why would it shift out of alignment?
How come there is no solution?
Why are you trying to have such ironclad, minute control? It's an ebook, not print and the layout, the margins, the font size, the font--those are all in the hands of the reader, not you.

Using 18px for spacing is bound to fail. Kindle, as you see, blithely overrides it and pretends it's not even there. So too would many other real devices.

You're trying to exert control where none is possible. You can do some things, as Ruben showed you, quite simply by just sticking with the default HTML. Trying to "moosh" the paragraphs closer together, in an environment like Kindle, which has a default line-height of 1.2ems, versus px...no.

@DNSB: OMG, yes on the fonts on the same line. It's a horror show and I must have to wrangle with that weekly. (sigh).

Hitch
Hitch is offline   Reply With Quote
Advert
Old 12-01-2021, 10:38 PM   #21
Bigo2
Zealot
Bigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchforkBigo2 can load mercury with a pitchfork
 
Posts: 130
Karma: 48786
Join Date: Oct 2010
Location: Australia - Adelaide
Device: Kindle3
Guys thank you for your suggestions how to do this properly - I know now.
Concerning my last questions up here, I was just curious WHY it does not work. Not because I want to use it - just my curiosity.
Thank you for explaining it to me.

Last edited by Bigo2; 12-02-2021 at 08:26 AM.
Bigo2 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Epub3 to mobi - TOC becomes numbered list readerwriter Conversion 7 10-21-2021 12:59 PM
Numbered List (ol) Problem w/Sigil v0.9.6 and Kindle planewryter Sigil 9 07-18-2016 09:22 PM
Numbered and bulleted list format lost on Nook Simple Touch epub Pondering ePub 2 10-15-2013 09:19 AM
Are The Days Of The $14.99 Ebook Numbered? Top100EbooksRank News 64 01-21-2013 09:23 PM
Numbered list continuation bhuvana786 ePub 4 05-26-2010 01:17 AM


All times are GMT -4. The time now is 01:36 PM.


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