![]() |
#1 |
Nameless Being
|
CSS for a Kindle-like text formatting?
I apologize if this has already been asked, but does anyone have any suggestions for what CSS coding might produce an e-pub output most similar to the Kindle "default" (i.e., no spacing between paragraphs, and minimal indent - looks to be about three letters' worth of space?)
I'm going a little nuts here trying to replicate it, and am hoping that someone else might have gone this way before me. ![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
For no spacing between paragraphs use
Code:
margin-top: 0; margin-bottom: 0; For small indents use something like Code:
text-indent: 1em; //vary size "1em" to suit. can be decimal (eg: "0.9em") |
![]() |
![]() |
![]() |
#3 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Try this:
Code:
p { margin: 0; padding: 0; text-indent: 1em; } |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bidirectional text in XHTML/CSS | Jellby | Workshop | 3 | 02-21-2010 01:28 PM |
Text formatting | jerrywojo | Ectaco jetBook | 4 | 01-19-2010 03:37 PM |
text file formatting | hobbyman | Calibre | 5 | 10-05-2008 05:18 PM |
Text tool for formatting Gutenberg text files | bob_ninja | Workshop | 5 | 11-13-2007 12:28 PM |
PRS-500 Text Formatting Tool | tesseract420 | Sony Reader Dev Corner | 5 | 09-13-2007 05:36 PM |