View Single Post
Old 08-22-2019, 11:13 AM   #3
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by lumpynose View Post
I'm using the following css which works for epub but when I look at the dual mobi (converted with kindlegen) in the Mobipocket Reader the tables are at the left.

PHP Code:
table {
    
margin-leftauto;
    
margin-rightauto;
    
border-collapsecollapse;
    
margin-top1em;

I tried changing the html from just table to table align="center" but that didn't help and as I expected it then failed with epubcheck.
KF7 has no CSS whatsoever. You need to do whatever you want to do, in HTML only, inline.

If memory serves, using embedded blockquotes or even a single blockquote will indent it, but not center it. You can't put a table inside a paragraph, so...try centering a div and putting the table inside that. Yes, never mind, I see that Ruben already suggested that.

Hitch
Hitch is offline   Reply With Quote