View Single Post
Old 04-08-2011, 05:41 PM   #1
aerodynamik
Enthusiast
aerodynamik doesn't litteraerodynamik doesn't litter
 
Posts: 43
Karma: 136
Join Date: Mar 2011
Device: Kindle Paperwhite
Minor issue with padding of Sueddeutsche recipe

Hello,

first of all thanks to all the contributors to Calibre and its recipes. This is really great, and makes my Kindle 3 so much more useful

I have a subscription of the Sueddeutsche newspaper, which when downloading with target Kindle (MOBI) has a padding left for the actual articles. Here is an example:



Since the heading of each article is perfectly left-aligned I tried to get rid of the extra padding to increase readability.

The online source looks as follows:
Code:
<p style="padding-left:4px;">Die EU-Kommission plant ....</p><br class="br5">
<p style="padding-left:4px;">EU-Kommissar Algirdas Semeta ...</p><br class="br5">
Inspecting the output in Calibre reveals that this is converted to
Code:
<blockquote class="calibre_9">...</blockquote>
I can see that the blockquote actually has a margin-left of 2em:
Code:
blockquote { margin: 0em 0em 0em 2em; }
while calibre_9 only seems to add a margin-top:
Code:
.calibre_9 { margin-top: 1em; text-indent: 0pt }
I tried the following without success:
  • Common Options -> Look&Feel -> Extra CSS -> blockquote { margin: 0em 0em 0em 0em; }
  • Common Options -> Look&Feel -> Extra CSS -> .calibre_9 { margin-left: 0; margin-right: 0; }
  • Output Options -> MOBI output -> Ingore marings

None of those worked. Can anyone point me in the right direction?
Do I need to change the CSS, adjust the recipe (pre-filter the padding-left:4px?), or is there a totally different solution?

Thanks in advance.

Cheers,
- aerodynamik

Last edited by aerodynamik; 04-08-2011 at 05:45 PM.
aerodynamik is offline   Reply With Quote