![]() |
#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,345
Karma: 27182818
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 | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Dec 2010
Device: Kindle 3 Wifi only
|
![]() 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 |
|
![]() |
||||
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 |