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-14-2020, 09:38 PM   #1
odonterla
Junior Member
odonterla began at the beginning.
 
Posts: 6
Karma: 44
Join Date: Feb 2020
Device: none
How to disable CSS property in viewer?

I can't figure out how to disable a CSS property in viewer using the CSS style sheets. I can remove it only with converting in Calibre. For example, if a book has margin-right defined. Things I tried-
margin-right: !important;
margin-right:none !important;
margin-right:auto !important;
margin-right:initial !important;
margin-right:inherit !important;
odonterla is offline   Reply With Quote
Old 05-14-2020, 09:58 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,341
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
A css rule looks like:

body, p, div { margin-right: 0 !important}
kovidgoyal is offline   Reply With Quote
Advert
Old 05-14-2020, 10:50 PM   #3
odonterla
Junior Member
odonterla began at the beginning.
 
Posts: 6
Karma: 44
Join Date: Feb 2020
Device: none
Thanks, that works
odonterla is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
batch modify a CSS property? roger64 ePub 4 09-29-2017 05:12 PM
iPad ePub, CSS : Bug with 'position:relative' property ? Ereskelios Apple Devices 3 09-29-2014 07:53 AM
CSS Font-Weight Property Values??? soloist66 Conversion 8 06-16-2013 09:08 PM
Incorrect line-height property in calibre CSS ? Bertrand Calibre 2 06-24-2011 04:15 PM
Wrong property in the css file Bertrand Writer2ePub 1 12-21-2010 05:05 AM


All times are GMT -4. The time now is 02:51 AM.


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