05-04-2011, 03:44 AM | #16 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It would be nice if we could select a piece of text or a paragraph and select a style for it. Of course the styles would be the ones defined in the stylesheet(s). I believe it is on Valloric list, but at a low priority.
In this way a remove indent button would be obsolete. |
05-04-2011, 03:51 AM | #17 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
|
|
Advert | |
|
08-01-2022, 11:42 AM | #18 |
Wizard
Posts: 1,469
Karma: 16638560
Join Date: Sep 2008
Device: Kobo Clara 2E
|
I have a Sony PRS T1 with the "latest" firmware, and an ebook with <p><br/><p>'s that are not respected.
Replacing the <br/> with broke everything, and now there are only blank pages, and every page flip jumps to the next chapter. I ended up using "..." as a workaround. (I'm commenting on an old thread because I'll probably have this same problem in the future.) |
08-01-2022, 02:19 PM | #19 | |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
.spacet { padding-top: 1em; } .spaceb { padding-bottom: 1em; } |
|
08-02-2022, 04:53 AM | #20 |
Wizard
Posts: 1,469
Karma: 16638560
Join Date: Sep 2008
Device: Kobo Clara 2E
|
The amount of bugs in the old Digital Editions software always surprises me. (Originally, the ebook didn't load at all because it used unknown-to-it CSS3 "rem" units - instead of a fallback, it just crashes)
|
Advert | |
|
08-02-2022, 04:59 AM | #21 |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
A lot of programs don't deal with rem. So using it is not a good idea. em works.
|
08-02-2022, 04:29 PM | #22 | |
Wizard
Posts: 1,469
Karma: 16638560
Join Date: Sep 2008
Device: Kobo Clara 2E
|
Quote:
I replaced all: Code:
<p class="CLASSNAME"><br/></p> Code:
<div class="CLASSNAME"></div> |
|
08-02-2022, 04:39 PM | #23 | |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
<p class="spacet">Some Paragraph text.</p> Code:
.spacet { padding-top: 1em; } Last edited by JSWolf; 08-02-2022 at 04:42 PM. |
|
08-02-2022, 04:39 PM | #24 |
A Hairy Wizard
Posts: 3,097
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
That is certainly one way to do it - and it is better than using the <br/> tag... however, I think Wolfie's intent was to use the css on the paragraph that has text.
Instead of: Code:
<p>This is a normal paragraph.</p> <p>This is a normal paragraph.</p> <p><br/></p> <p>This is a normal paragraph with space above.</p> <p>This is a normal paragraph.</p> -OR- <p>This is a normal paragraph.</p> <p>This is a normal paragraph.</p> <p class="space"></p> <p>This is a normal paragraph with space above.</p> <p>This is a normal paragraph.</p> Code:
p.spacet {padding-top: 1em} <p>This is a normal paragraph.</p> <p>This is a normal paragraph.</p> <p class="spacet">This is a normal paragraph with space above.</p> <p>This is a normal paragraph.</p> |
08-02-2022, 04:43 PM | #25 | |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
08-02-2022, 04:50 PM | #26 |
A Hairy Wizard
Posts: 3,097
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Doh - ninja'd again!
|
08-02-2022, 04:54 PM | #27 |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
08-03-2022, 02:55 AM | #28 |
Wizard
Posts: 1,469
Karma: 16638560
Join Date: Sep 2008
Device: Kobo Clara 2E
|
Editing the paragraphs above/below the spacer elements is more error-prone. I opted to make the least changes to the existing file.
|
08-03-2022, 03:39 AM | #29 |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
No it's not more error prone. Keeping the rubbish for the space is more prone not to work. You want to do this in CSS. You want to get rid of those extra lines. That's how it will work best.
|
08-03-2022, 05:20 AM | #30 |
Wizard
Posts: 1,469
Karma: 16638560
Join Date: Sep 2008
Device: Kobo Clara 2E
|
I'm just trying to get the ebook I purchased to work on my device, and I did. Improving the markup isn't my goal.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Reading epub on viewer inexplicably changes the time stamp of epub | greenapple | Library Management | 20 | 03-19-2011 10:18 PM |
epub, ePub, EPUB, warum blos ePub? | flowoeB | Lounge | 5 | 11-27-2009 09:37 AM |
Bad movie interpretations | pshrynk | Lounge | 69 | 06-27-2008 10:06 AM |