View Single Post
Old 06-21-2021, 02:25 PM   #9
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by phillipgessert View Post
A great book that's far less dry than the title would suggest!
I was just watching this great video today:

"Why Road Barriers Stopped Killing Drivers"

And about halfway through the video, they flash a few tables showing off death/safety statistics:

Click image for larger version

Name:	Original.Table.png
Views:	485
Size:	237.6 KB
ID:	187804

Bleh!!! Ptoowey!

1. You see all that centered alignment?

It makes it impossible to skim your eyes down a column and COMPARE rows. (The entire purpose of using a table in the first place.)

If you right-align numbers, all:
  • 100s line with 100s
  • 10s with 10s
  • 1s with 1s

2. All those $ signs in every row?

Get rid of those and move those into the column header.

3. You see all those vertical lines?

You think you need them, but they're useless.

4. You see all those horizontal lines between rows?

You think you need them, but they're useless.

Optional exceptions: 1 above/below the table + 1 between the header/data.

(This visually separates the table from the text itself.)

* * *

Here's 3 versions of the same table in various stages of cleanup (from worse->better):

Spoiler:
Version A (Alignment):

Code:
----------------------------------------------------------
Severity          |  Minimum  |      Mean  |    Maximum 
                  |  Cost ($) |  Cost ($)  |    Cost ($)
----------------------------------------------------------
Fatal             | 190,200   | 4,288,422  | 10,100,000
Disabling Injury  |  89,200   |   781,094  |  3,300,000
Evident Injury    |       0   |   174,335  |    955,500
Possible Injury   |       0   |    98,188  |    955,500
PDO               |       0   |    10,582  |     42,298
----------------------------------------------------------
Version B (Remove verticals):

Code:
----------------------------------------------------------
Severity           Minimum         Mean     Maximum 
                   Cost ($)    Cost ($)     Cost ($)
----------------------------------------------------------
Fatal              190,200    4,288,422   10,100,000
Disabling Injury    89,200      781,094    3,300,000
Evident Injury           0      174,335      955,500
Possible Injury          0       98,188      955,500
PDO                      0       10,582       42,298
----------------------------------------------------------
Version C (Remove horizontals):

Code:
Severity           Minimum         Mean      Maximum 
                   Cost ($)    Cost ($)      Cost ($)

Fatal              190,200    4,288,422   10,100,000
Disabling Injury    89,200      781,094    3,300,000
Evident Injury           0      174,335      955,500
Possible Injury          0       98,188      955,500
PDO                      0       10,582       42,298


And here's what an HTML recreation might look like:

Click image for larger version

Name:	Rereated.Table.(HTML).png
Views:	458
Size:	16.0 KB
ID:	187805

Same exact data. Perfectly readable, perfectly understandable.

Tools you need? Alignment + spacing.

Bold is optional (although not even needed).

Quote:
Originally Posted by hobnail View Post
My vague memory is that it worked. I only tried it on the kobo and kindle.
Thanks for the info. Last I tried it (a few years ago), I was having trouble with moving <caption> to the top:

https://developer.mozilla.org/en-US/...S/caption-side

so I gave up and didn't look much further. (I remember it working on a few of the devices, but failing on many others.)

It may be okay for very simple tables... but the kinds of complicated tables I work on, I just wrote off the entire thing.

But I'd definitely be open for anyone else's testing/research on it. In all these years on MobileRead, I can't recall anyone ever really speaking about <caption>.

Last edited by Tex2002ans; 06-21-2021 at 02:57 PM.
Tex2002ans is offline   Reply With Quote