tklebel / crosstabr

Cross tabulation with HTML and Markdown output
Other
1 stars 0 forks source link

format table output with css #7

Closed tklebel closed 8 years ago

tklebel commented 9 years ago

Create .css to format html output.

tklebel commented 9 years ago

Think about a two-column layout: On the left side the cross-table, on the right side statistics.

Make use of @media screen and (min-width: XXXpx)

tklebel commented 9 years ago

Create three .css-files:

  1. general layout: cross_table.css
  2. two-column design: two_column.css
  3. three-column design: three_column.css

The print method should then insert the corresponding stylesheet accordingly.

tklebel commented 9 years ago

Think about differing lengths of labels. Should they be broken? (can this be done with css?)

Maybe to have a maximum width for cells, after which text should be broken.

tklebel commented 9 years ago

How should the label for rows be placed? Maybe to rotate it similar to graphs?

The structure combining the tables could be made of tables itself, which could be hard-coded, since the surroundings of the tabulated part always stay the same.

tklebel commented 9 years ago

Formatting ideas for nested tables: http://jsfiddle.net/Fm5bM/4/

tklebel commented 8 years ago

Principal formatting was done via d50153f67f23