Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2011, 04:53 AM   #1
TheStoepsel
Member
TheStoepsel has a complete set of Star Wars action figures.TheStoepsel has a complete set of Star Wars action figures.TheStoepsel has a complete set of Star Wars action figures.TheStoepsel has a complete set of Star Wars action figures.TheStoepsel has a complete set of Star Wars action figures.
 
Posts: 10
Karma: 444
Join Date: Jun 2011
Device: kindle
How to get a well-formatted table on my kindle

Hi everyone!

Currently, I am trying to create a mobi-file to use with my kindle that should include a nicely formatted table. What I want to do is:
- horizontally center the table on the "page"
- center the content of each cell of the table
- define table cell's width
- change the background-color of single cells

I found a document in the German amazon-kindle store that contains such a well formatted table. I downloaded a drm-free sample to my kindle and tried to "reengineer" it by converting it to epub using calibre and then trying to figure out what the author did.
When I tried to re-convert the epub to the mobi-format and reviewed it on my kindle all the nice formating was gone! The author somehow managed to achieve ALL of the goals mentioned above. But obviously he took another approach than I did creating the document.

I use Sigil to create the epub and then convert it to mobi using calibre. I tried using css as well as using html-tags right insinde the <table>-tag. Unfortunately this does not give me the results I am shooting for. Any ideas how I might achive my goal??? Should I create a mobi from scratch using Mobipocket Creator?
TheStoepsel is offline   Reply With Quote
Old 06-16-2011, 01:08 PM   #2
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
Did you try using mobi2html instead of converting first? That might give you more insight into the mobi formatting.
susan_cassidy is offline   Reply With Quote
Advert
Old 06-16-2011, 01:18 PM   #3
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Tables on Mobi are quirky to say the least. I've found from my own books that, for example, explicitly specifying cell widths will sometimes work and sometimes not, seemingly completely at random. Centring - both of the table as a whole and of cell contents - should certainly work OK.

Best not to use CSS, because Mobi doesn't support it - all that's happening with CSS is that the Mobi creation tool is trying (more or less successfully) to convert it to HTML tag attributes, so it's better to just code the attributes directly.
HarryT is offline   Reply With Quote
Old 06-18-2011, 02:09 AM   #4
TheStoepsel
Member
TheStoepsel has a complete set of Star Wars action figures.TheStoepsel has a complete set of Star Wars action figures.TheStoepsel has a complete set of Star Wars action figures.TheStoepsel has a complete set of Star Wars action figures.TheStoepsel has a complete set of Star Wars action figures.
 
Posts: 10
Karma: 444
Join Date: Jun 2011
Device: kindle
Thank you both for your input!

Quote:
Originally Posted by susan_cassidy View Post
Did you try using mobi2html instead of converting first? That might give you more insight into the mobi formatting.
That was VERY helpful! It gave me a lot of hints and ideas. My tables look much better now! Thank you!!!
TheStoepsel is offline   Reply With Quote
Old 06-23-2011, 08:08 PM   #5
David Kudler
Enthusiast
David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'David Kudler knows the difference between 'who' and 'whom'
 
David Kudler's Avatar
 
Posts: 48
Karma: 10000
Join Date: Apr 2011
Device: iPad
Quote:
Originally Posted by HarryT View Post
Tables on Mobi are quirky to say the least. I've found from my own books that, for example, explicitly specifying cell widths will sometimes work and sometimes not, seemingly completely at random. Centring - both of the table as a whole and of cell contents - should certainly work OK.

Best not to use CSS, because Mobi doesn't support it - all that's happening with CSS is that the Mobi creation tool is trying (more or less successfully) to convert it to HTML tag attributes, so it's better to just code the attributes directly.
Do you know, I've spent the last six months pulling out my hair (what's left of it) over this. Thanks!

Now if only the .mobi format could be brought into the 21st century, and recognize style sheets.
David Kudler is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle & Tech formatted kindle books? Ncage1974 Amazon Kindle 7 02-09-2011 10:03 AM
Content Atrociously formatted Kindle books. DiapDealer Amazon Kindle 9 10-02-2010 01:45 AM
Kindle formatted feeds Zorz Calibre 8 01-21-2010 11:17 PM
Books Particularly Well-Formatted for Kindle geneven Amazon Kindle 11 11-05-2009 03:48 PM
Princeton University to sell Kindle Formatted Textbooks daffy4u News 16 06-27-2008 01:29 AM


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


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