Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-06-2025, 01:08 AM   #1
xtraktor
Enthusiast
xtraktor began at the beginning.
 
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!
xtraktor is offline   Reply With Quote
Old 05-06-2025, 02:24 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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%?
DNSB is offline   Reply With Quote
Advert
Old 05-06-2025, 05:03 AM   #3
xtraktor
Enthusiast
xtraktor began at the beginning.
 
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
xtraktor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:08 PM.


MobileRead.com is a privately owned, operated and funded community.