![]() |
#1 |
Enthusiast
![]() Posts: 28
Karma: 10
Join Date: Mar 2017
Device: Kindle Voyage
|
Calibre eliminate margin-left: auto; margin-right: auto;
Hi!
If I use for poetry this code: display: block; font-family: "Roboto Condensed", sans-serif; font-size: 1em; font-style: italic; margin-left: auto; margin-right: auto; text-align: left; width: 75%; When converting in ANY format Calibre eliminate margin-left: auto; and margin-right: auto; ONLY if the width is 75%. Why? Thx in advance! |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,750
Karma: 168431891
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
What happens if you set margin-right: 12.5%; and margin-left: 12.5%; which should give you the same effect as auto for a width of 75%?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 28
Karma: 10
Join Date: Mar 2017
Device: Kindle Voyage
|
I can rewrite the eliminated syntax, also I can use any other procent - except 75% -, but the question is: why eliminate Calibre rows from the code?
Update: in the latest version, the percentage of width doesn't matter anymore, it will shift it anyway margin-left: auto; margin-right: auto; Last edited by xtraktor; 05-06-2025 at 09:21 AM. Reason: correction |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I prevent Nook from auto top margin | rosshalde | Barnes & Noble NOOK | 1 | 11-20-2014 02:00 AM |
Left or right margin | manojknaikade | Kindle Developer's Corner | 0 | 11-17-2014 02:02 PM |
left margin again | gigapackiii | Sigil | 3 | 01-27-2011 11:55 AM |
margin: 0 auto; | gardefjord | ePub | 21 | 10-06-2010 10:02 AM |
calibre ignore margin-top and margin-bottom | bender | Calibre | 2 | 12-11-2009 06:58 AM |