View Single Post
Old 09-12-2016, 10:16 AM   #1
Oxford-eBooks
Zealot
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 138
Karma: 12096
Join Date: May 2010
Device: Loads!
Angry Kindle for iPad - CSS for tables broken?

Has anyone seen this odd behaviour in Kindle for iPad app (also iPhone)?
I'm working on a project that needs moderately complex tables and also multiple table types. BUT the CSS formatting is screwing up on this particular app. The CSS is fine in a browser and ALL OTHER eBook readers I can test for including the Kindle previewer.

Here's a super-simple example.

Code:
<table class = "table1">
	<tr><th>header cell</th></tr>
	<tr><td>normal cell</td></tr>
	<tr><td class = "r">r-type cell</td></tr>
</table>

Using 'normal' css:

Code:
table.table1 th{background-color:#f00;}
table.table1 td{background-color:#0f0;}
table.table1 td.r{background-color:#00f;}
All cells show BLUE. It looks like it's ignoring everything after "table.table1" because if I delete the table.table1 td.r line, then everything renders GREEN.


Here's the closest I can get:

Code:
th{background-color:#f00;}
td{background-color:#0f0;}
td.r{background-color:#00f;}
TD: shows green (correct)
TH: No BG colour (WRONG)
TD.r: Shows blue (correct)

That's suggesting that indeed it's ignoring the first type and class part of my CSS identifier and just to add insult to injury, it's ignoring TH. That kind of scuppers my multiple table formatting plans.

I've beaten my face against Amazon for MONTHS now and can just BARELY get them to understand that this is a developer question rather than a customer complaint about an eBook that's been purchased. I managed to get to a tech person but now they're crashed in a loop of apologising for the problem and asking me to send my source code.

Driving me NUTS!
Oxford-eBooks is offline   Reply With Quote