![]() |
#31 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
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.
|
![]() |
![]() |
![]() |
#32 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
IMHO, it's easier to use a blockquote. It's also neater code. Last edited by JSWolf; 08-09-2025 at 03:44 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#34 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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… |
![]() |
![]() |
![]() |
#35 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |