Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2025, 03:38 PM   #31
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: 79,886
Karma: 146918083
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 Quoth View Post
See letters, poems, hymns, songs. Better done with suitable multiple classes and a <p>

The quote here is an example of the kind of thing a "blockquote" is sematically for.
You you use your classes in between the blockquote. That makes it much easier to see where your offset text is. Also, you can set your default (most used) margins for your blockquote and if you need to override it, you can do so with a class. It's the best way to do it.
JSWolf is online now   Reply With Quote
Old 08-09-2025, 03:42 PM   #32
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: 79,886
Karma: 146918083
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
@JSWolf - Ah, ok, that's a lot clearer re: margins. Regarding stress-testing the screen/font size, it seems that you're restating the original premise of the question. What's missing is quantification: What is "small" to you (in terms of screen size)? What is "reasonable" to you (in terms of font-size)?

@Quoth - I'm not sure I understand your post: are you saying that (in the context of a work of fiction) blocks of text which contain "letters, poems, hymns, songs" stylistically set apart from the main text do not constitute block quotations?
Given what we have for phone screens, I would say the size of the iPhone SE (2nd Gen) would be the smallest screen size. It's also the same size as the iPhone 8. It's a 4.7" screen. I really don't see smaller screens for a smartphone being used much or being relevant.

IMHO, it's easier to use a blockquote. It's also neater code.

Last edited by JSWolf; 08-09-2025 at 03:44 PM.
JSWolf is online now   Reply With Quote
Advert
Old 08-09-2025, 04:28 PM   #33
ElMiko
Evangelist
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: 471
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@JSWolf - Thanks for the screen size estimate. What I'm trying to do here is get a kind of mental model on what ebook producers, on average, tend to assume about how users will use their ebooks, so your quantification is a helpful data point.

And, FWIW, I also tend to find the <blockquote> to be a convenient shorthand for a specific type of offset text—namely, block quotations (which I can style either at the container-level or at the content-level... or more frequently, both). Whereas <div>s tend not to have any consistent use case; they are just generic containers.

Last edited by ElMiko; 08-09-2025 at 04:31 PM.
ElMiko is offline   Reply With Quote
Old 08-09-2025, 04:49 PM   #34
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,361
Karma: 20212223
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
That’s exactly right, divs are generic containers while blockquotes are semantically used specifically for long quotes in a block format. While you can style the blockquote to look however you want it wouldn’t be semantically correct to use it for an image wrapper or something. It is more proper to use the div when there isn’t a more semantically correct tag. And then give it a descriptive class:

Code:
<div class="poem">
  <p>line of text</p>
  <p>line of text</p>
  <p>line of text</p>
</div>

<div class="book">
  <p>line of text</p>
  <p>line of text</p>
  <p>line of text</p>
</div>

<div class="email">
  <p>line of text</p>
  <p>line of text</p>
  <p>line of text</p>
</div>

<div class="textmsg">
  <p>line of text</p>
  <p>line of text</p>
  <p>line of text</p>
</div>
Code:
div.poem {style the div container here}
div.poem p {style the lines in the div here}

div.book {style the div container here}
div.book p {style the lines in the div here}

Etc, etc, etc…
There is a valid argument that you don’t need to use a <p> inside a div when a more semantically correct tag would do, such as <li>…. But if you were going to use <li> I would just style the <ol>/<ul> instead of putting it inside a div in the first place.
Turtle91 is offline   Reply With Quote
Old 08-09-2025, 04:53 PM   #35
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: 79,886
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I would still use a blockquote to do offset text. I would use a div for images. So in your sample the divs would go in favor of blockquotes. Also, if you are looking for where there is offset text in the code, all you have to do is search for blockquote.
JSWolf is online now   Reply With Quote
Advert
Old 08-09-2025, 07:21 PM   #36
ElMiko
Evangelist
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: 471
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@Turtle91 - yeah, that seems more or less like the approach I tend to take. However, for poetry that is part of a prose novel (i.e. a character is reciting/reading a poem/song, or it's being used epigraphically) I'll consider it a block quotation. If it's just a book of poetry, I'll div it, div it good.

Last edited by ElMiko; 08-09-2025 at 09:02 PM.
ElMiko is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you prefer text- or image-based title pages? Fitz Frobozz ePub 6 10-07-2024 11:27 PM
Chapter title pages not showing in Kindle MchneGunCarrie Sigil 18 12-15-2022 06:40 AM
Chapter & Text file counts and Chapter splits BetterRed Library Management 0 04-06-2021 06:25 PM
Possible bug I noticed if a chapter has a title page on a separate text file dibster Kobo Reader 6 07-05-2019 10:00 AM
Different text in TOC & actual chapter title Algiedi Conversion 25 07-24-2011 01:12 AM


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


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