03-08-2011, 08:00 AM | #1 |
Enthusiast
Posts: 45
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
|
Justification problem even with extra css
Hi All!
I had created an almost complete recipe for a hungarian cultural magazine, http://www.es.hu/ and my almost last TODO item is to justify the article paragraphs. The recipe can be viewed here: https://gist.github.com/860238 I have an extra_css in it Code:
extra_css = ''' body { background-color: white; color: black } .article1 { text-align: justify; } p { text-align: justify; } .calibre8 { text-align: justify; } ''' Code:
--change-justification justify What am I doing wrong? Thanks in advance! |
03-08-2011, 10:09 AM | #2 |
creator of calibre
Posts: 44,346
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You dont use .calbre* names in extra_css you use selectors that refer to the input document, not the output document. In this case the input document is the html downloaded from the web.
|
Advert | |
|
03-09-2011, 08:40 AM | #3 |
Enthusiast
Posts: 45
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
|
Kovid!
I figured it out. In the original input the 'p' tags had an 'align="left"' attribute which I had removed with preprocess_regexp and now it looks good (for me). |
Tags |
alignment, justification, justify |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The option "--extra-css" doesn't work | slex | Conversion | 2 | 02-19-2011 06:26 AM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |
a few extra css questions | marbs | Recipes | 12 | 11-20-2010 10:15 AM |
using "Extra CSS" box | RedRoverJ | Calibre | 4 | 06-25-2010 07:08 PM |
I'm having a problem with extra paragraph spaces | akosimike | Calibre | 10 | 05-27-2010 06:53 PM |