|
|
#1 |
|
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
|
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! |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,616
Karma: 28549044
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.
|
|
|
|
|
|
#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 07:26 AM |
| css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 06:09 PM |
| a few extra css questions | marbs | Recipes | 12 | 11-20-2010 11:15 AM |
| using "Extra CSS" box | RedRoverJ | Calibre | 4 | 06-25-2010 08:08 PM |
| I'm having a problem with extra paragraph spaces | akosimike | Calibre | 10 | 05-27-2010 07:53 PM |