Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-28-2017, 12:03 PM   #1
AndreasTPC
Junior Member
AndreasTPC began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2017
Device: Kobo Aura One
Change paragraph style?

I'm reading an epub book using koreader, and the paragraph style that's being used is indentation of first line in each paragraph. I prefer the style of having paragraphs not being indented, and instead having some space in between them.

So I figured I could probably change that using css. So I edited epub.css and added these lines, figuring that it should override whatever style is included in the book, or defined elsewhere in koreader:

Code:
p {
    text-indent: 0em !important;
    margin-top: 0.2em !important;
    margin-bottom: 0.2em !important;
}
But it doesn't work, paragraphs are still indented, and the margins are not appearing. What am I doing wrong here?
AndreasTPC is offline   Reply With Quote
Advert
Old 06-28-2017, 03:54 PM   #2
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,089
Karma: 5821288
Join Date: Dec 2009
Location: The Heart of Texas
Device: JetBook Lite (retired), AuraHD, PDA,
Have you turned off the "embedded style" using the option in the reader bottom menu, under the gear icon?

Was that the "epub.css" in /KOReader/data/?

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 06-28-2017, 04:20 PM   #3
AndreasTPC
Junior Member
AndreasTPC began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2017
Device: Kobo Aura One
Quote:
Originally Posted by Ken Maltby View Post
Have you turned off the "embedded style" using the option in the reader bottom menu, under the gear icon?
I had not, and that made it work. But that's not ideal, because that disables other formatting in the book that is nice to have. For example the book I'm reading at the moment has a little piece of artwork at the start of each chapter that contains the chapter number and title, which is supposed to be centered, and now isn't. And it has epigraphs that are supposed to be in italics, but now isn't.

I think the css parser used doesn't respect !important for some reason, that's the only explanation I can think of.

I guess I'll have to edit the css files in the epub manually for now. But it will get annoying having to do that for every book I want to read.

Thanks for the help.
AndreasTPC is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Paragraph Style When Viewing HTML Files DuckFOO Amazon Kindle 6 05-15-2017 08:45 PM
Overriding style sheet for one paragraph Alda Sigil 9 05-20-2015 09:25 AM
Break Document at Paragraph Style BatGrfx Writers' Corner 2 09-10-2011 02:46 PM
Odd Paragraph Style behavior for text input Sylver Conversion 8 02-11-2011 04:37 PM
Paragraph Style Not Exporting / ePub soulartist Workshop 5 12-11-2010 12:02 AM


All times are GMT -4. The time now is 01:59 PM.


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