View Single Post
Old 03-23-2022, 11:16 AM   #26
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: 80,207
Karma: 148951761
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 AlanHK View Post
If working on a book with lots of blockquotes that just have text, no child tags, and want epubcheck to stop whining about them, you can define.

div.blockquote {margin:1em;}

Then S&R <blockquote> to <div class="blockquote"> and </blockquote> to </div>
Add other formatting (font-size, text-align, text-indent) to the def to taste.
Div will work equally with raw text or child tags.

Often blockquote tags are used not for actual quotes, but as a way to add margins to e.g. a dedication. Bad form generally, but it will work even if CSS is ignored.
A blockquote should not be replaced with a div. It should be left alone. It's much better code. I replace the divs with blockquotes.
JSWolf is offline   Reply With Quote