|
|
#16 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 530
Join Date: Nov 2025
Device: none
|
Good, after re-phrasing your needs into step-by-step form, we can really get into practise.
|
|
|
|
|
|
#17 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 530
Join Date: Nov 2025
Device: none
|
I think you need to look into flex display. I have limited experience in that so I can't help much.
|
|
|
|
|
|
#18 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,267
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
A blockquote is a semantic element that indicates the content is a quotation from another source. How is renders is up to the reading software and can vary significantly. If you want an exact layout you are better off avoiding it.
Last edited by jhowell; 03-13-2026 at 06:13 PM. |
|
|
|
|
|
#19 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,407
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#20 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,407
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I cannot say if the first chapter would fit on my screen on my iPhone. As I said before, if you don't know the screen that's going to be used to read this, then you don't know if the pages will look as you want because they may not fit. Also, you don't know if the person reading is going to use a larger font or larger line height (if possible). Last edited by JSWolf; 03-13-2026 at 06:22 PM. |
|
|
|
|
|
|
#21 | ||
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 536
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
Quote:
Also, I don't know why you keep talking about things needing to fit on a single page. Who here is insisting on that? Are you okay? Last edited by ElMiko; 03-13-2026 at 08:02 PM. |
||
|
|
|
|
|
#22 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 536
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
I mean, that's fine; I'm really not trying to debate the use of blocksquotes as a semantic element (although I think the example with a poem and an attribution here would qualify). But even if we use <divs> instead of <blockquotes>, the underlying issue is the same. Do you have any ideas on that point?
|
|
|
|
|
|
#23 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,267
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
|
|
|
|
|
#24 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 530
Join Date: Nov 2025
Device: none
|
Usually the container decide content. Your goal is to let content decide container, I don't know if this is possible.
|
|
|
|
|
|
#25 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,916
Karma: 9553607
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Try the following:
Code:
<div class="center block">
<p class="hindent">This is a stanza</p>
<p class="hindent">This is a stanza of beautiful poetry and a very quite long one</p>
<p class="hindent">This is a stanza of beautiful poetry and the most long stanza in this poetry</p>
<p class="hindent1">This is a stanza of beautiful poetry</p>
<p class="hindent">This is a stanza of beautiful poetry</p>
<p class="hindent">This is a stanza of beautiful poetry</p>
<p class="hindent1">This is a stanza of beautiful poetry</p>
<p class="hindent">This is a stanza of beautiful poetry</p>
<p class="hindent">This is a stanza of beautiful poetry</p>
<p class="hindent1">This is a stanza of beautiful poetry</p>
<p class="hindent">This is a stanza of beautiful poetry</p>
<p class="hindent">This is a stanza of beautiful poetry</p>
</div>
Code:
.block {
margin: 1em 0;
display: block;
width: fit-content;
max-width: 85%;
margin-left: auto;
margin-right: auto;
text-align: left;
}
Of course, this "solution" is not working on ADE 2.x. Last edited by RbnJrg; Yesterday at 01:39 AM. |
|
|
|
|
|
#26 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 536
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
@RbnJrg — Okay. So. When do I just go out and buy a "RbnJrg" bat signal? And where are they sold?
Thank you. This is exactly "it". Quick question (hopefully): do you know why when using your classes if I do <div class="center"><div class="block"> the bottom margin disappears when the text has to flow onto a second page (see image4 attached)? Whereas when it's coded exactly as you have (i.e. <div class="center block">), the bottom margin is preserved. Note, the <div><div> method work fine if the text isn't forced to reflow to a second page (see image5 attached). Also, I tested it with class="center block" and class="block center" and it appears to be agnostic to order. Is that right? EDIT: Re: ADE, of course not. What else is new? But also we're already on 4.5.something... when can we collectively forget about that trash application? Surely, those old nooks and kobos are on their last legs battery-wise.... Last edited by ElMiko; Yesterday at 08:57 AM. |
|
|
|
|
|
#27 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 530
Join Date: Nov 2025
Device: none
|
@RbnJrg
I was going to darw a border tight fit to text just now, but failed, your answer hit just at right time. |
|
|
|
|
|
#28 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 536
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
@RbnJrg — Follow-up question: Is the "center" necessary or are the left and right auto margins sufficient to center the block?
|
|
|
|
|
|
#29 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,645
Karma: 12000000
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kindle Oasis 2, Nook Glowlight 4+
|
Quote:
Why? Because CURRENT manufactured Nooks and Kobos still use the older ADE engine that's roughly equivalent to ADE 2.01 for reading epub. So, a Nook manufactured in 2026 is going to be using that very old engine, and so is a Kobo manufactured in 2026. Unless and until either manufacturer changes something. Don't hold your breath on that one! As neither manufacturer has seen fit to update their Adobe reading engines so far. It's been same old, same old for a long time now. Kobo pushes their kepub format, so they have no incentive to update the Adobe engine and Nook, well, Barnes and Noble is more or less living back in the stone age. Even their phone/tablet apps use the old Adobe engine! Given how long an e-reader can last, you are looking devices manufactured quite recently as being around potentially another decade or longer. Sorry to be the bearer of bad news. I don't like it either. |
|
|
|
|
|
|
#30 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 530
Join Date: Nov 2025
Device: none
|
To my test, margin left and right are definitely necessary. Otherwise it would snap to left. And to be sure, you need to do another blank div to enclose all of that, for good measure.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inline-block and float interaction | ElMiko | ePub | 15 | 08-27-2025 04:01 AM |
| Inline-block | eggheadbooks1 | Sigil | 3 | 10-31-2016 03:07 AM |
| Creating epub with inline block problem | Gerlyn | ePub | 5 | 12-22-2011 01:59 PM |
| Does mobi support display: inline-block; | DeniseL | Kindle Formats | 2 | 09-30-2011 07:33 PM |