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-13-2026, 01:52 PM   #16
icearch
Zealot
icearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enough
 
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.
icearch is offline   Reply With Quote
Old 03-13-2026, 01:54 PM   #17
icearch
Zealot
icearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enough
 
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.
icearch is offline   Reply With Quote
Old 03-13-2026, 06:08 PM   #18
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
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.
jhowell is offline   Reply With Quote
Old 03-13-2026, 06:16 PM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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:
Originally Posted by ElMiko View Post
@Karellen: I didn't have competing margins at all. JSWolf had competing margins in his "fixed" version
I do not have competing margins in my CSS. I've used that CSS for a long time and if I had competing margins, I'd have known it long before now.
JSWolf is online now   Reply With Quote
Old 03-13-2026, 06:17 PM   #20
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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:
Originally Posted by icearch View Post
Attachment 221731

Is this what you want?
How will it work if the text doesn't fit on the screen? In the second chapter, the text would be too large to fit ob my iPhone screen so it would have to go to the next screen.

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.
JSWolf is online now   Reply With Quote
Old 03-13-2026, 07:55 PM   #21
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 536
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
Quote:
Originally Posted by JSWolf View Post
I do not have competing margins in my CSS. I've used that CSS for a long time and if I had competing margins, I'd have known it long before now.
I love that confidence, but boy do Karellen and I have news for you!

Quote:
blockquote {
margin-top: 1em;
margin-right: 1.5em;
margin-bottom: 1em;
margin-left: 1.5em;
margin: 1em 2em;
padding: 0;
display: block;
}
Why are you like this?

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.
ElMiko is online now   Reply With Quote
Old 03-13-2026, 07:59 PM   #22
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 536
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
Quote:
Originally Posted by jhowell View Post
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.
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?
ElMiko is online now   Reply With Quote
Old 03-13-2026, 10:33 PM   #23
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,267
Karma: 95018123
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by ElMiko View Post
But even if we use <divs> instead of <blockquotes>, the underlying issue is the same. Do you have any ideas on that point?
Using div gives you more control of layout but I don’t know of a way to achieve all of your goals.
jhowell is offline   Reply With Quote
Old Yesterday, 12:26 AM   #24
icearch
Zealot
icearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enough
 
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.
icearch is offline   Reply With Quote
Old Yesterday, 01:34 AM   #25
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,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>
and

Code:
.block {
    margin: 1em 0;
    display: block;
    width: fit-content; 
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
Click image for larger version

Name:	One.png
Views:	11
Size:	110.7 KB
ID:	221748 Click image for larger version

Name:	Two.png
Views:	11
Size:	105.8 KB
ID:	221749

Of course, this "solution" is not working on ADE 2.x.

Last edited by RbnJrg; Yesterday at 01:39 AM.
RbnJrg is offline   Reply With Quote
Old Yesterday, 08:39 AM   #26
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
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....
Attached Thumbnails
Click image for larger version

Name:	image4.jpg
Views:	6
Size:	190.6 KB
ID:	221758   Click image for larger version

Name:	image5.jpg
Views:	7
Size:	269.0 KB
ID:	221759  

Last edited by ElMiko; Yesterday at 08:57 AM.
ElMiko is online now   Reply With Quote
Old Yesterday, 09:34 AM   #27
icearch
Zealot
icearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enough
 
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.
icearch is offline   Reply With Quote
Old Yesterday, 11:22 AM   #28
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
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?
ElMiko is online now   Reply With Quote
Old Yesterday, 02:08 PM   #29
graycyn
Wizard
graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.
 
Posts: 1,645
Karma: 12000000
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kindle Oasis 2, Nook Glowlight 4+
Quote:
Originally Posted by ElMiko View Post
@RbnJrg

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....
Well, no, the Nooks and Kobo devices are NOT necessarily on their last legs battery-wise.

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.
graycyn is offline   Reply With Quote
Old Yesterday, 05:04 PM   #30
icearch
Zealot
icearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enoughicearch will become famous soon enough
 
Posts: 105
Karma: 530
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by ElMiko View Post
@RbnJrg — Follow-up question: Is the "center" necessary or are the left and right auto margins sufficient to center the block?
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.
icearch is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 09:50 AM.


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