|
|
#16 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,719
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#17 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,719
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
p {
margin-top: 0;
margin-bottom: 0;
widows: 1;
orphans: 1;
text-indent: 1.2em;
}
|
|
|
|
|
|
|
#18 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,719
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#19 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,394
Karma: 20212733
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
|
|
|
|
|
|
|
#20 | |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,394
Karma: 20212733
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
|
Quote:
<p class="para"> as the <p> tag is saying that it is a paragraph already... However, I think they wanted a very specific/minimal/easy fix. Just changing the CSS will fix them all. |
|
|
|
|
|
|
#21 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,719
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Just changing the p CSS will change them all as well. Still no need for a class for the most used paragraph style.
Last edited by JSWolf; 10-21-2025 at 10:07 AM. |
|
|
|
|
|
#22 | ||
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 407
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
|
Thanks.
What I had done, without knowing quite what is what, is change this item: Quote:
To this: Quote:
There's more issues with this file, e.g. the letters have a slightly faint quality on my e-reader, they're less black, less saturated, than regular letters, I don't know what's causing that. Rather weird, don't you think? I realize it's hard to say anything without having the complete file. I've stripped most of the copyrighted text from the attached filed. |
||
|
|
|
|
|
#23 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,685
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
Quote:
Onya, jswolf. Come in and start confusing the issue as usual. |
||
|
|
|
|
|
#24 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
body {
font-family: Georgia, Baskerville, roman, 'times new roman', times, serif;
color: #404040;
background-color: transparent;
hyphens: none;
-webkit-hyphens: none;
-moz-hyphens:none;
adobe-hyphenate: none;
margin: 30px 5% 20px 5%;
text-indent: 0;
text-rendering: optimizeLegibility;
}
|
|
|
|
|
|
|
#25 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,719
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
[
Code:
body {
font-family: Georgia, Baskerville, roman, 'times new roman', times, serif;
color: #404040;
background-color: transparent;
hyphens: none;
-webkit-hyphens: none;
-moz-hyphens:none;
adobe-hyphenate: none;
margin: 30px 5% 20px 5%;
text-indent: 0;
text-rendering: optimizeLegibility;
}
You also need to dump the webkit code as it's not ePub compliant. And the moz code has to go as this is not Firefox or any other web browser. And finally, the font-family line has to go because that could cause problems and not allow some programs to change the font. And the text-rendering also has to go. Also, dump adobe command. and dump the text indent. When you are done dumping the rubbish, there's nothing left. To be honest, the entire body is a mess. This is what I use as for the body. Code:
body {
widows: 1;
orphans: 1;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
text-align: justify;
}
|
|
|
|
|
|
#26 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 407
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
|
Thank you everybody.
It's true I was just looking for a quick fix for the most obvious display problems, but it all helps me a little to understand more of the coding. And yes, color: #404040; was the culprit. What a strange thing to put in there! Whoever would want that? Thanks a lot. |
|
|
|
|
|
#27 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,058
Karma: 174315300
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
After a while, you get almost numb to the number of idiocies people commit when creating the CSS for ePub ebooks. Some of the most egregious choices are the people who specify black text which can cause inverted text to show as black on black and the one who specify a background colour which can be fun when reading on an eInk display with 16 shades of grey (well, 14 plus white and black).
|
|
|
|
|
|
#28 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,719
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#29 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,876
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Just saying that margins should always be in "em" is nonsense. This is even true for paragraphs and headings. Furthermore, it's highly recommended to set the top margin of the main heading to "%" so that if the user changes the font size, the distance from the heading to the top of the viewport remains unchanged. It's also highly recommended to set the left and right margins of blockquotes to "%"; that way, any increase in font size by the user doesn't carry the risk of drastically reducing the reading block. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add blank lines between paragraphs. | bn_el | KOReader | 5 | 11-02-2017 11:14 AM |
| blank lines between paragraphs | franklekens | Kobo Reader | 71 | 01-26-2015 12:52 PM |
| Blank lines between paragraphs? | ascherjim | OpenInkpot | 30 | 12-03-2009 12:19 AM |
| Removing blank lines between paragraphs? | corroonb | Workshop | 3 | 08-13-2009 04:23 PM |
| Insert Blank Lines Between Paragraphs | Timoleon | Calibre | 14 | 03-22-2009 02:43 PM |