08-09-2011, 05:11 AM | #1 |
Enthusiast
Posts: 28
Karma: 274
Join Date: Jul 2011
Device: Kindle3, Kindle4, KoboGlo
|
control blockquote indentation
I am using ebook-convert from CLI, to convert text to epub. I want to control the indentation of paragraphs inside a blockquote. It works as I expected on the w3schools/tryit page (text-indent-example.jpg). But ebook-convert tag <p style="text-indent: 0;"> does not override the text-indent set by css. Is there a way of doing it without hacking the epub file?
|
08-09-2011, 09:11 AM | #2 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
By default Calibre will honor what's in your html - odds are that some conversion setting is overriding the css. What conversion options do you have enabled?
Remove Spacing between paragraphs is the most common culprit - if you want control over indents avoid that feature and just use css to control spacing. |
Advert | |
|
08-09-2011, 09:47 AM | #3 | |
Enthusiast
Posts: 28
Karma: 274
Join Date: Jul 2011
Device: Kindle3, Kindle4, KoboGlo
|
re: control backquote indentation
Quote:
Is there an accepted way to "use css to control spacing"? |
|
08-09-2011, 12:12 PM | #4 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
p {margin-top:.3em; margin-bottom:.3em;}
Or 0 (that's what the option does), or whatever you like. Either add it directly to your doc or to Calibre's 'extra css' box. |
08-09-2011, 03:06 PM | #5 |
Wizard
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
I thought the CSS box in Conversion dialog only applied to what you see in the calibre viewer, and not the document itself as seen by other readers/devices? If the CSS box actually changes the html in the document so it applies to any other readers that display html correctly, then I need to change my wrong assumptions and start using it.
|
Advert | |
|
08-09-2011, 04:43 PM | #6 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
That assumption is wrong. The viewer does have its own CSS override, but you access it in the viewer. The Conversion settings apply to the converted ebook.
|
08-09-2011, 06:14 PM | #7 |
Wizard
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Wow! Thanks, Starson.
Edit: Really, thank you. In that case, CSS will be the next "complexity" I take baby steps into. Last edited by unboggling; 08-09-2011 at 06:22 PM. |
08-09-2011, 11:16 PM | #8 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
08-09-2011, 11:22 PM | #9 |
Wizard
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
@dwanthny, thank you. Good catch. I actually remembered to correct it a few hours ago.
|
08-10-2011, 05:04 AM | #10 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
I may be a little late to the party, but...
Moderator Notice
Moved to correct subforum. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Preserving Indentation | zaph0d | Conversion | 5 | 05-30-2011 04:41 PM |
blockquote over ride | dicknskip | Sigil | 3 | 03-21-2011 04:44 PM |
Combining blockquote with image wrap | WRB | Sigil | 1 | 02-12-2011 07:46 PM |
FBReader blockquote | minigrrl | PocketBook | 3 | 03-09-2010 08:09 PM |
Epub and negative indentation | Nate the great | ePub | 6 | 04-27-2009 11:48 AM |