![]() |
#31 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#32 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,673
Karma: 103503501
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Wanting no CSS is nostalgia for HTML 3.
Wanting bare <p> and <h2> is prehistoric for people typing in Notepad in 1993. |
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
You get simpler code, better looking code, and more accurate ADE page numbers. |
|
![]() |
![]() |
![]() |
#34 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
replace: \1 \2 \1 place the first zone \2 place the second (again, you can include literals actual text) \2 \1 flips the two captures ![]() |
|
![]() |
![]() |
![]() |
#35 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I have no issue with using p class= for minor Exceptions: <p> for general body text would be acceptable to me, because 90% of a book is just the same paragraph style. But why? <p class='indent'> makes it obvious and the performance hit on a modern reader device is not noticeable. I find EPUB3 coding really annoying when having to back trace thru 5 levels to find why a stupid title page does not fit on a single screen on my Libra2 (1264 x 1680? ). FWIW I adjust so it also works on my Aura 2 and it looks just fine. |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 815
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Quote:
|
|
![]() |
![]() |
![]() |
#37 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#38 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 815
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
|
![]() |
![]() |
![]() |
#39 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I prefer my CSS and my HTML to be as simple as possible. I know what <p> does as it's for most paragraphs. Also, a lot of eBooks have classes that do not say what they do. They make no sense in that respect.
I also know that if I have a chapter heading and it is using <h2>, I know what it does. I know what a <blockquote> does as I've coded it as well. |
![]() |
![]() |
![]() |
#40 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,673
Karma: 103503501
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
If you want simple and reliable and repeatable rendering, use <p class="myquote"> and never blockquote (though fans of semantics in HTML will disagree, but then you don't believe in <em> and <strong>.).
Also you might want h2 for other headings and not just chapters. There is a good reason CSS was invented. We didn't always have it. |
![]() |
![]() |
![]() |
#41 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
And Unix was not the only place 2-3 letters were used for commands.
Some BPH get it, that there is no need for extremely verbose class names FP, CN, TX, CT, FM,... They add a digit for variants I have no problem guessing what those are used for. ![]() For those tiny cases, The editor has the Jump-to CSS feature where I can READ the attributes. |
![]() |
![]() |
![]() |
#42 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
As for block text, <blockquote> is best. It's simplifies the code. I'm not a fan of excess code or code that tried to duplicate something else but in a more complex way. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Where do displayed chapter titles come from? | JJ Johnson | ePub | 11 | 10-17-2020 07:15 PM |
Chapter #s or Chapter Titles? | bmcox | Writers' Corner | 33 | 02-01-2013 07:03 AM |
Titles, subtitles & alternative "display" titles | jigme | ePub | 2 | 08-31-2011 05:19 PM |
Ebook chapter titles: with or without chapter number? | amoroso | Writers' Corner | 16 | 06-14-2011 06:35 AM |