![]() |
#1 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2018
Device: iBooks on iPad Pro
|
Center only last line in a heading
Hi! How can I produce forced centering of only the last line of a heading? (see example) Thank you in advance for your help! degn (using Calibre)
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
In CSS3 there's text-align-last:
https://developer.mozilla.org/en-US/...ext-align-last but its support in actual ereaders is probably nonexistent. Also see: https://css-tricks.com/almanac/prope...xt-align-last/ |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
If you are ok with the last line always being the same, you could do something really simple like:
<p>bla bla bla blajlkd jflkdj fkljds fökjdkf jölkdj fkljds lkföjkdsl jflkdsj fkjds kföjdsk fj</p> <p style="text-align:center; margin-top:-1em;>Centered last line</p> |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2018
Device: iBooks on iPad Pro
|
Hi Tex2002ans, you are right - this function is not supported.
patrik - simple trick yes, but does not solve my problem. But thanks anyway. |
![]() |
![]() |
![]() |
#5 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I don't know of any way to achieve that automatically, and yes, we've tried. Hitch |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,202
Karma: 34984330
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
if that paragraph is somewhat isolated, such as in a footnote or comment, it would possibly look ok if you center the entire paragraph.
I personally don't care for entire paragraphs to be centered, and find them hard to read, but for something with only a few lines as in your sample, it might fly. |
![]() |
![]() |
![]() |
Tags |
calibre, centering, format |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre changes line spacing and heading size | jlmyers | Conversion | 1 | 11-09-2015 10:50 AM |
Format heading possible | chookie2 | Library Management | 3 | 10-16-2015 06:37 PM |
Question: Centered Heading With Line Through Middle | Tex2002ans | ePub | 26 | 02-18-2014 01:04 PM |
Empty heading | Elle518 | ePub | 4 | 05-01-2012 11:24 AM |
yet another heading question | jhempel24 | Sigil | 3 | 11-25-2010 07:58 AM |