View Single Post
Old 08-11-2009, 12:33 PM   #36
PaulChernoch
Junior Member
PaulChernoch began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2009
Device: Kindle 2
Joshua,

I read your book and it was excellent. Now I am trying to apply the lessons I learned. One problem I am having is with tables. I got the background color setting to work as you suggested using "background-color:#RRGGBB". And happily the combination of "padding: 0" on my <td> elements and "border-spacing: 0" on my <table> elements plus 'cellpadding="0"' for good measure removed all the space between my cells as I wanted. (Maybe overkill, but I was experimenting with Calibri versus mobigen to see which produced the best results.) But I am interested in what other table related CSS features or HTML element attributes are supported for the table, th, and td elements. This information is not covered in Appendix A. I tried "vertical-align: middle" in my stylesheet, but it had no effect. I hate to insert br tags to fudge this.

BTW, the reason for my fascination with tables is to support scrolling over images that are too large to be displayed in readable form, such as maps. I have written a Perl script using Image::Magick that slices an image into a grid of Kindle-friendly pieces and saves them as individual jpegs, as well as stitching them back together again with an HTML table. By making the images small enough (as you described) they are not zoomed, and the table support on the Kindle 2 allows you to scroll left and right by a half a screen nicely using the 5-way, while Next Page and Prev Page allow up and down movement.

- Paul
PaulChernoch is offline   Reply With Quote