XML technologies / ePUB / ePub für (In)Designer / Refining tables / Designing with lines

(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)

Instead of colored fills, use lines to divide tables. With cell styles assigned, use the CSS file’s property td.tabelle-reihen. InDesign already writes this from your freely named cell style. The values border-bottom, border-left and border-right determine line position.

td.tabelle-reihen {
  border-bottom: 1px solid;
  border-left: 1px dotted;
  border-right: 1px dotted;
}

Table with solid horizontal and dotted vertical lines

Figure: Table divided by solid horizontal and dotted vertical lines.

CSS permits many other combinations. Explore its properties and experiment. An inspiring collection of CSS table layouts appears here: Top 10 CSS Table Designs.

  

 

 

 

back to top