View Single Post
Old 03-18-2022, 10:13 PM   #21
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,635
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Hi all, and thank you for the responses. I have noted your comments and have been playing with the blockquote and I will be using it in future instead of a "fake" quote.

Quote:
Originally Posted by hobnail View Post
I didn't get an error from epubcheck when I made a block quote with no p tags in it.

Also, this page says they're not always needed; see the bottom paragraph:

https://www.w3.org/TR/2011/WD-html5-...e-element.html
Thanks for that link. I have tried using both the blockquote tag on its own as well as adding the p child tags. I found that when using the p child tags, I get a double margin. Using the Live CSS previewer, I am having difficulty narrowing down where the extra margin is coming from. I guess I'll have to create a class rule for the p tag when used in a blockquote to negate the extra margin. See images


Quote:
Originally Posted by Turtle91 View Post
I've always used blockquote when it is a longer quote...typically two or more paragraphs. I think that is why people are used to using the <p> tags inside of a blockquote. If it was a single paragraph then it's easier to just style the individual paragraph:
Thanks Turtle91, I'll use the blockquote in future. I'll play around with your rules.
Its weird because I have looked back at some other books I have reformatted, and the quotes using the same class rule work in some books, but not in others. I cannot see what is causing it. My stylesheet.css is copied from book to book, with only minor changes (italics for a heading for example)

I don't see a setting for Publisher's styling or similar. Only a setting for Publishers Default for font.


Quote:
Originally Posted by Doitsu View Post
They're not needed in epub3 books that contain HTML5 files
What makes a xhtml file a HTML5 file?


Quote:
Originally Posted by JSWolf View Post
If the blockquote ends at the end of the chapter, then there is some whitespace after the end of the last line. This means that it's possible for there to be a blank screen before the next chapter.

<blockquote class="blockquote"> (using the CSS I posted for .blockquote) has a bottom margin of 0. That means no whitespace after the last line of the blockquote at the end of the chapter.
Thanks for that pointer. I'll be aware of that.
Attached Thumbnails
Click image for larger version

Name:	css1.jpg
Views:	116
Size:	266.0 KB
ID:	192848   Click image for larger version

Name:	css2a.jpg
Views:	105
Size:	103.4 KB
ID:	192849  
Karellen is offline   Reply With Quote