View Single Post
Old 03-01-2010, 06:45 AM   #6
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
Quote:
Originally Posted by roger64 View Post
Though I did not receive too many answers up to now, it may happen..
Guru, where are you?

I am quite busy creating epub from odt files thru calibre.
I just discovered thru w3school the magic world of CSS and extra.css.
I used these rules with good effect
.endnote {font-size:10px;}
p {line-height:1.4;}


question

I would like to use an extra.css rule to get centered images.
Now the images are set on the left side.

Thank you for any reply.
hi roger, i guess all the guru were away for the weekend.

for centered images, you can try this css code :

.center {text-align : center;}

however you will have to add it to the images within the code, like this :

<div class="center"><img alt="" src="../images/img0002.jpg" /></div>

i don't know if there is a way to automatise this in calibre... (gurus ??) but you can use sigil to edit your epub files and modify the code as you like.
zelda_pinwheel is offline   Reply With Quote