Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-19-2013, 04:06 AM   #1
dawood
Enthusiast
dawood began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2013
Device: none
--extra-css doesn't seem to work

My command line includes:

--extra-css=".calibre2 { margin-left:auto; margin-right:auto; }"

But it doesn't seem to be applying. I unzipped and checked stylesheet.css but it isn't there. Any ideas?

Last edited by dawood; 10-19-2013 at 08:04 AM.
dawood is offline   Reply With Quote
Old 10-19-2013, 07:58 AM   #2
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 266
Karma: 724240
Join Date: Aug 2013
Device: KyBook
Did you forget the closing double quote just in the example? or might that be the cause?
At_Libitum is offline   Reply With Quote
Old 10-19-2013, 08:03 AM   #3
dawood
Enthusiast
dawood began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2013
Device: none
No, sorry that was a typo here
dawood is offline   Reply With Quote
Old 10-19-2013, 09:19 AM   #4
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: 25,923
Karma: 5035037
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
extra css applies to the input document, not the output document. .calibre2 does not exist in the input document. http://manual.calibre-ebook.com/conv...html#extra-css
kovidgoyal is online now   Reply With Quote
Old 10-19-2013, 09:23 AM   #5
dawood
Enthusiast
dawood began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2013
Device: none
Ah ok. So if I'm converting tmp.html it will run on tmp.css (if I'm referencing that normally in the <head>)?

What I'm trying to do is center all the images, without much luck so far.

Alright, seem to have got that now.

Last edited by dawood; 10-19-2013 at 09:50 AM.
dawood is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Justification problem even with extra css hiperlink Recipes 2 03-09-2011 08:40 AM
The option "--extra-css" doesn't work slex Conversion 2 02-19-2011 06:26 AM
why doesn't this CSS work? Barty Conversion 1 02-09-2011 09:28 PM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM
a few extra css questions marbs Recipes 12 11-20-2010 10:15 AM


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


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