![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Customizing recipes - justify text
Another question in order to customize recipes: Is there a way to make justification of text the default in the recipe?
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
extra_css = '* { text-align: justify !important}'
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Once again, thank you, Kovid!
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Hm, I have been quick with my eulogy. My recipe has those extra-css:
Code:
extra_css = 'td.textb {font-size: medium;}' extra_css = '* { text-align: justify !important}' extra_css = '* { text-decoration: none !important}' Thus, there appears no justified text in the news source. Is there something missing? |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,440
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
extra_css = 'td.textb {font-size: medium;} * { text-align: justify important; text-decoration: none !important}' |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Thank you, but while the text-align command appears in the css, it takes still no effect in the news source. Text-decoration, however, is still working fine.
Edit: With an exclamation mark before the "important", it works all! Thus: Code:
extra_css = 'td.textb {font-size: medium;} * { text-align: justify !important; text-decoration: none !important}' Last edited by Leonatus; 02-06-2022 at 04:48 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
customizing recipes | NSILMike | Recipes | 11 | 02-04-2022 09:49 AM |
How to automatically justify text? | cptnemo | Recipes | 9 | 11-27-2013 08:42 PM |
Can you left justify text with the 360? | maxbookworm | PocketBook | 11 | 05-31-2010 10:49 AM |
customizing built in recipes | jrasmussen | Calibre | 2 | 02-15-2010 11:26 PM |
Problems getting text to justify | ficbot | Calibre | 4 | 01-13-2010 02:27 PM |