Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2022, 03:10 PM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
Method to Convert Fancy CSS to Everyday CSS?

In general, my epubs have been fairly old and I've been playing around with converting their CSS styles (selectors) over to my standard set of CSS styles. No problem. Lately, I've run across some more "modern" CSS that short-circuits my brain so that I can't figure out what it's doing. Right now, I'm looking at the kepub version of Wilkie Colins' "The Woman in White" as formatted by Standard Ebooks:

https://standardebooks.org/ebooks/wi...woman-in-white

and, while it looks like I can mostly understand their CSS, I would prefer my old, plebian CSS. From an old, bloody thread:

https://www.mobileread.com/forums/sh...d.php?t=335913

I took a look at the formatting JSWolf came up with in place of what Standard Ebooks used in one of their books, and that's pretty much what I use (the h2 + p, hr + p selector is new to me and looks pretty useful). What I'd like to do is convert this book's CSS over. But, I don't know what the most efficient way to do it is. As a starting point, it looks like I can just rip out all the <section> and <header> stuff and well as things like role= and type= (most of which I don't understand).

Any other suggestions as a methodology?

EDIT: Tex2002ans kindly provided a lot of information in another thread:

https://www.mobileread.com/forums/sh...5&postcount=12

But, I was hoping for a more "nutshell" version for converting between Standard Ebooks' formats to my everyday formats.

Last edited by enuddleyarbl; 07-22-2022 at 03:25 PM.
enuddleyarbl is offline   Reply With Quote
Old 07-22-2022, 03:24 PM   #2
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,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The CSS from Standard EBooks is rubbish. They have no idea how to do is properly. KISS is the way to do it. They just want to use the most convoluted CSS they can. They even have some code in their CSS that causes RMSDK on Kobo to ignore the entire CSS. It was pointed out to them what the problem way, but they don't care.

I did take one of their book and instead of always trying to figure out what the CSS was doing, I just made simple CSS to do what needed to be done based on looking at the way the eBook displayed in Calibre's viewer.

Have a look at What exactly are Standard Ebook's "advanced epubs"? and when you get to post #34, download the eBook I posted and comoare the CSS from mine to theirs and you'll understand the problem.
JSWolf is offline   Reply With Quote
Advert
Old 07-22-2022, 04:26 PM   #3
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by JSWolf View Post
The CSS from Standard EBooks is rubbish. They have no idea how to do is properly. KISS is the way to do it. They just want to use the most convoluted CSS they can. They even have some code in their CSS that causes RMSDK on Kobo to ignore the entire CSS. It was pointed out to them what the problem way, but they don't care.

I did take one of their book and instead of always trying to figure out what the CSS was doing, I just made simple CSS to do what needed to be done based on looking at the way the eBook displayed in Calibre's viewer.

Have a look at What exactly are Standard Ebook's "advanced epubs"? and when you get to post #34, download the eBook I posted and comoare the CSS from mine to theirs and you'll understand the problem.
Yep. That's what I've done. But, I'm wondering what your process was of converting from their formats to yours. Right now, I'm playing around with "The Woman in White" and it looks like all I have to do to get most of the way there is:
  1. Bulk delete all the classes in one of their stylesheets and replace them with mine
  2. Delete all their other stylesheets (and the links to them in the heads of each file
  3. Add my own class= lines in the few places that need it.

Yes, I still have all those <section>, <header> and <footer> things. But, they're out of the way from the actual text and I can work with that.
enuddleyarbl is offline   Reply With Quote
Old 07-22-2022, 04:40 PM   #4
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,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I removed unused CSS. I combined all the CSS into one file. I dropped all the unnecessary <section> and other gunk. I made the chapter headers a single line as they don't need all that excess code. I converted it to ePub 2. Basically, I took their overly complicated code and made it simple code.

It was easier to go ePub 2 so I could easily blow away some of the ePub 3 mess they made.
JSWolf is offline   Reply With Quote
Old 07-22-2022, 05:25 PM   #5
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 315
Karma: 3196766
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Personally I don’t bother trying to preserve anything in the original CSS if I’m already in there anyway. I try to see if cleaning up the markup seems like a reasonable task, and if it does I just trash the CSS entirely and replace it with a few lines of something really barebones.
phillipgessert is offline   Reply With Quote
Advert
Old 07-22-2022, 05:53 PM   #6
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
After deleting all their codes and replacing them with mine, I went through the book looking for things I needed to change. Most of it was fine. One thing I realized while I was doing that, though, was that they happened to use standard forms of <i>, <b>, <em>, <strong>, etc. tags (or at least any spans they used with custom classes on those also included the standard forms). If they hadn't done that (and I've seen books that used epub-i and epub-b for <i> and <b>), I would have lost those html codes in the text. So, I guess I should have checked for class names related to those before deleting them.

Also, JSWolf, how did you get rid of the <section> stuff? Did you use something like Diap's Editing Toolbag? Or, go through it manually and delete?
enuddleyarbl is offline   Reply With Quote
Old 07-22-2022, 06:19 PM   #7
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,741
Karma: 145864619
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 DaveLessnau View Post
After deleting all their codes and replacing them with mine, I went through the book looking for things I needed to change. Most of it was fine. One thing I realized while I was doing that, though, was that they happened to use standard forms of <i>, <b>, <em>, <strong>, etc. tags (or at least any spans they used with custom classes on those also included the standard forms). If they hadn't done that (and I've seen books that used epub-i and epub-b for <i> and <b>), I would have lost those html codes in the text. So, I guess I should have checked for class names related to those before deleting them.

Also, JSWolf, how did you get rid of the <section> stuff? Did you use something like Diap's Editing Toolbag? Or, go through it manually and delete?
This is why I don't blow away the CSS. I see what the specific class does amd either fix it or use my own.

As for the sections, yes, Diap's Editing Toolbag does a great job of deleting the <section> stuff. There's no need for it. A chapter title like in the book I edited needs only one line. It does not need a <section> or <div>.
JSWolf is offline   Reply With Quote
Old 07-22-2022, 07:18 PM   #8
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,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Oh wow. What an overly complex css (in my noobie eyes).

@DaveLessnau how comfortable are you with regex S&R. You could rid the code and replace with your own in just a few S&R quite easily.

For your <section search...
Code:
\n\s\s<section data\-parent=".*?" id=".*?" epub:type=".*?">\n
and then replace with nothing

Then search...
Code:
\s\s</section>\n\n</body>\n\n</html>
Replace...
Code:
\n\n</body>\n</html>
All going well, in two steps you have removed all the <section tags
Karellen is offline   Reply With Quote
Old 07-22-2022, 10:49 PM   #9
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,586
Karma: 14328510
Join Date: Nov 2019
Device: none
The Standard Ebooks versions may be more semantically correct but when the book is only for me that stuff doesn't matter; all I need is decent formatting. They seem to present themselves as the gold standard of semantically correct ebook formatting but in some ways they are wrong. For example, they use blockquote for what I think of as a block; letters, poetry, etc. But if you look at the w3c definition for blockquote it's quite clear that it's really for a quote, like an excerpt. What they could or should be using is the more mundane div. (For example, I have a div class called block that I use for letters, poetry, etc.)

With Standard Ebooks I don't think I've ever seen a book that they've put out that isn't also available elsewhere from the usual places for free. If I'm just reformatting a book to suit my own preferences I'd rather start with one from Project Gutenberg, Faded Page, etc. since there's not so much "junk" to deal with.
hobnail is offline   Reply With Quote
Old 07-23-2022, 11:06 AM   #10
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by hobnail View Post
...With Standard Ebooks I don't think I've ever seen a book that they've put out that isn't also available elsewhere from the usual places for free. If I'm just reformatting a book to suit my own preferences I'd rather start with one from Project Gutenberg, Faded Page, etc. since there's not so much "junk" to deal with.
Originally, I had a free version of the book from Amazon. But, when I loaded it up on my ereader, it was unreadable. I popped it into Calibre Editor and the formatting looked like it was done by a drunk on lsd. It wasn't any kind of newfangled, complex stuff. It was just badly done and fixing it would take longer than I wanted. So, I headed over to Project Gutenberg, downloaded a new copy there and, though better, it was still badly done (it looks like my old Amazon version was based off Gutenberg's). So, off I went to Standard Ebooks. Yes, the formatting is complex and not to my taste. But, at least the structure of the book was formatted decently.

As I was changing the formatting around, I was saying the exact same thing you mentioned: I can understand "publishers" wanting to go the semantically correct way (they have a lot of very different people reading things). But, for my purposes, I just need a simply formatted book that I can adjust as needed. I don't need thousands of lines of styling information across scores of classes. In this book, after I was done with it, I ended up with about a dozen:
Code:
@page { margin-top: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; }
blockquote {
  margin-top: 1em;
  margin-right: 1.7em;
  margin-bottom: 1em;
  margin-left: 1.7em;
  font-style: italic;
}
body { widows: 1; orphans: 1 }
h1, h2 {
  text-align: center;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}
hr {
  margin-top: 0.9em;
  margin-bottom: 0.9em;
  border: none;
}
hr::before {
  content: "***";
  display: block;
  text-align: center;
}
h2 + p, h3 + p, h4 + p, hr + p {
  text-indent: 0;
}
img {
  max-height: 100%;
  max-width: 100%;
}
p {
  margin-top: 0;
  margin-bottom: 1;
  text-indent: 1.2em;
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-indent: 0;
}
.copy {
  font-size: small;
  margin-top: 0.5em;
  text-align: center;
  text-indent: 0;
}
.ded {
  text-align: center;
  text-indent: 0;
  margin-top: 3em;
}
.footnote {
  font-family: sans-serif;
  font-size: 0.7em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  margin-left: 4em;
  margin-right: 4em;
  text-indent: 0;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  page-break-inside: avoid;
}
And, it was that many only because of the footnotes and a couple of more-specific classes that I added in since they keep recurring in various books.

Just as JSWolf said in that Standard Ebooks thread I referred to earlier, I wish SE would produce a simple, standard version of their books and leave the fancy stuff to their "Advanced" formatted version.
enuddleyarbl is offline   Reply With Quote
Old 07-23-2022, 01:02 PM   #11
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,509
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Just curious as to whether you took a look at the MobileRead library. See https://www.mobileread.com/forums/sh...ad.php?t=95623 for instance.

Sent from my Pixel 4a using Tapatalk
PeterT is offline   Reply With Quote
Old 07-23-2022, 01:05 PM   #12
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,014
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by hobnail View Post
The Standard Ebooks versions may be more semantically correct but when the book is only for me that stuff doesn't matter; all I need is decent formatting. They seem to present themselves as the gold standard of semantically correct ebook formatting but in some ways they are wrong. For example, they use blockquote for what I think of as a block; letters, poetry, etc. But if you look at the w3c definition for blockquote it's quite clear that it's really for a quote, like an excerpt. What they could or should be using is the more mundane div. (For example, I have a div class called block that I use for letters, poetry, etc.)

With Standard Ebooks I don't think I've ever seen a book that they've put out that isn't also available elsewhere from the usual places for free. If I'm just reformatting a book to suit my own preferences I'd rather start with one from Project Gutenberg, Faded Page, etc. since there's not so much "junk" to deal with.
I think <blockquote> is really just for websites, maybe even stuff ignoring CSS. It does an indent by default and I have seen
<span class="s1"><blockquote class="bq1"><blockquoteclass="bq2"><blockquoteclas s="bq2">Some text</blockquote></blockquote></blockquote><blockquote class="bq1"><blockquoteclass="bq2"><blockquoteclas s="bq2">More text</blockquote></blockquote></blockquote></span>

Instead of
<p class="quote2">Some text</p><p class="quote2">More text</p>

The House of Random Penguins and Standard Books both seem to do pointlessly over-elaborate CSS.
Quoth is offline   Reply With Quote
Old 07-23-2022, 02:37 PM   #13
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by PeterT View Post
Just curious as to whether you took a look at the MobileRead library. See https://www.mobileread.com/forums/sh...ad.php?t=95623 for instance.

Sent from my Pixel 4a using Tapatalk
No. I hadn't even known about that forum. Thanks for the heads-up.
enuddleyarbl is offline   Reply With Quote
Old 07-23-2022, 03:10 PM   #14
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,741
Karma: 145864619
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
I think <blockquote> is really just for websites, maybe even stuff ignoring CSS. It does an indent by default and I have seen
<span class="s1"><blockquote class="bq1"><blockquoteclass="bq2"><blockquoteclas s="bq2">Some text</blockquote></blockquote></blockquote><blockquote class="bq1"><blockquoteclass="bq2"><blockquoteclas s="bq2">More text</blockquote></blockquote></blockquote></span>

Instead of
<p class="quote2">Some text</p><p class="quote2">More text</p>

The House of Random Penguins and Standard Books both seem to do pointlessly over-elaborate CSS.
I'm going to disagree with you on <blockquote>. <blockquote> is for offset text. Plain and simple.
JSWolf is offline   Reply With Quote
Old 07-23-2022, 04:33 PM   #15
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,347
Karma: 20171571
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
Kinda hard to disagree with Quoth when it is a simple example of what he/she's (sorry Quoth don't mean to assume ) seen...

But...I will disagree with your disagreement and raise you one "are you kidding me?!"

Blockquotes are semantically for a "long quote", of which you can include a citation, etc. Short quotes (within a paragraph) semantically should use <q> ...although I don't think I've ever seen this used in the wild - especially in fiction.

Blockquote:
Quote:
Definition and Usage
The <blockquote> tag specifies a section that is quoted from another source.

Browsers usually indent <blockquote> elements...

Tips and Notes
Tip: Use <q> for inline (short) quotations.

Offset text would be a <div>, usually surrounding a <p> (assuming multiple lines/paragraphs), unless it was a list item of some-such, then it would use <ol>/<ul> and <li> -or- <dl><dt><dd>, etc.

DIV:
Quote:
Definition and Usage
The <div> tag defines a division or a section in an HTML document.

The <div> tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript.

The <div> tag is easily styled by using the class or id attribute.

Any sort of content can be put inside the <div> tag!

Note: By default, browsers always place a line break before and after the <div> element.
Turtle91 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Customize viewer css. pygments.css not found drglenn Viewer 2 12-18-2020 04:52 PM
ebook-convert problem with page_styles.css gogu1904 Conversion 4 08-30-2020 03:34 AM
pagestyle.css extra / integrated in stylesheet.css / or not at all? chaot Workshop 14 02-24-2017 11:10 PM
Override ePub CSS with userStyle.css? barium Sony Reader Dev Corner 11 07-16-2011 03:25 PM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM


All times are GMT -4. The time now is 12:50 PM.


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